master
iotcat 4 years ago
parent 6d952bc0f0
commit 047c60ab6d
  1. 10
      layout/_partial/head.swig
  2. 4
      layout/_script/_comments/valine.swig
  3. 2
      layout/_script/aplayer.swig
  4. 2
      layout/_script/libs.swig
  5. 2
      layout/_script/pjax.swig
  6. 4
      layout/_script/theme.swig
  7. 19
      source/extensions/MathMenu.js
  8. 19
      source/extensions/MathZoom.js
  9. 19
      source/lib/mathjax/mathjax.js
  10. 1
      source/lib/pjax/pjax.min.js
  11. 27
      source/lib/valine/valine.min.js

@ -21,14 +21,14 @@
{%- if theme.ushio -%} {%- if theme.ushio -%}
{%- include "./_head/ushio.swig" -%} {%- include "./_head/ushio.swig" -%}
{%- else -%} {%- else -%}
<script type="text/javascript" src="{{ url_for('lib/jquery/jquery.min.js') }}"></script> <script type="text/javascript" src="{{ theme.cdnurl }}/lib/jquery/jquery.min.js"></script>
{%- endif -%} {%- endif -%}
{#- iziModal -#} {#- iziModal -#}
<link rel="stylesheet" type="text/css" href="{{ url_for('lib/iziModal/iziModal.min.css') }}" /> <link rel="stylesheet" type="text/css" href="{{ theme.cdnurl }}/lib/iziModal/iziModal.min.css" />
{#- iziToast -#} {#- iziToast -#}
<link rel="stylesheet" type="text/css" href="{{ url_for('lib/iziToast/iziToast.min.css') }}" /> <link rel="stylesheet" type="text/css" href="{{ theme.cdnurl }}/lib/iziToast/iziToast.min.css" />
{#- aplayer -#} {#- aplayer -#}
{%- if theme.aplayer.enable -%} {%- if theme.aplayer.enable -%}
@ -47,7 +47,7 @@
{#- Fancybox styling -#} {#- Fancybox styling -#}
{%- if theme.fancybox -%} {%- if theme.fancybox -%}
<link rel="stylesheet" type="text/css" href="{{ url_for('lib/fancybox/jquery.fancybox.css') }}" /> <link rel="stylesheet" type="text/css" href="{{ theme.cdnurl }}/lib/fancybox/jquery.fancybox.css" />
{%- endif -%} {%- endif -%}
{#- MathJax (LaTeX) support -#} {#- MathJax (LaTeX) support -#}
@ -59,7 +59,7 @@
{%- endif -%} {%- endif -%}
{#- Theme styling -#} {#- Theme styling -#}
<link rel="stylesheet" type="text/css" href="{{ url_for('css/style.css') }}?v={{ theme.version }}" /> <link rel="stylesheet" type="text/css" href="{{ theme.cdnurl }}/css/style.css?v={{ theme.version }}" />
{#- Analytics and push -#} {#- Analytics and push -#}
{%- if not env.debug -%} {%- if not env.debug -%}

@ -1,6 +1,6 @@
{%- if theme.valine.enable -%} {%- if theme.valine.enable -%}
{% set valine_js_url = '//cdn.jsdelivr.net/gh/HCLonely/Valine@1.4.14/dist/Valine.min.js' %} {% set valine_js_url = '/lib/valine/valine.min.js' %}
<script src="{{ valine_js_url }}" data-pjax></script> <script src="{{ theme.cdnurl }}{{ valine_js_url }}" data-pjax></script>
<style> <style>
/* 背景图片 */ /* 背景图片 */
#veditor { #veditor {

@ -1,6 +1,6 @@
{%- if theme.aplayer.enable -%} {%- if theme.aplayer.enable -%}
{% set aplayer_js_url = '/lib/aplayer/aplayer.min.js' %} {% set aplayer_js_url = '/lib/aplayer/aplayer.min.js' %}
<script src="{{ aplayer_js_url }}"></script> <script src="{{ theme.cdnurl }}{{ aplayer_js_url }}"></script>
<script> <script>
$.post("{{ theme.aplayer.api }}?type=playlist&id={{ theme.aplayer.playlist }}&limit={{ theme.aplayer.limit }}&random={{ theme.aplayer.random }}", function(res){ $.post("{{ theme.aplayer.api }}?type=playlist&id={{ theme.aplayer.playlist }}&limit={{ theme.aplayer.limit }}&random={{ theme.aplayer.random }}", function(res){

@ -18,6 +18,6 @@
{%- for lib in js_libs -%} {%- for lib in js_libs -%}
{%- if lib -%} {%- if lib -%}
<script type="text/javascript" src="{{ url_for('lib') }}/{{ lib }}"></script> <script type="text/javascript" src="{{ theme.cdnurl }}/lib/{{ lib }}"></script>
{%- endif -%} {%- endif -%}
{%- endfor -%} {%- endfor -%}

@ -1,4 +1,4 @@
<script src="https://cdn.jsdelivr.net/npm/pjax/pjax.js"></script> <script src="{{ theme.cdnurl }}/lib/pjax/pjax.min.js"></script>
<script> <script>
{%- if theme.pjax.enable -%} {%- if theme.pjax.enable -%}
window.pjax = new Pjax({ window.pjax = new Pjax({

@ -1,2 +1,2 @@
<script type="text/javascript" src="{{ url_for('js/src') }}/kayo.js?v={{ theme.version }}" data-pjax></script> <script type="text/javascript" src="{{ theme.cdnurl }}/js/src/kayo.js?v={{ theme.version }}" data-pjax></script>
<script type="text/javascript" src="{{ url_for('js/src') }}/kayo-no-pjax.js?v={{ theme.version }}"></script> <script type="text/javascript" src="{{ theme.cdnurl }}/js/src/kayo-no-pjax.js?v={{ theme.version }}"></script>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save