From 047c60ab6d8204794b94300f272eead43ce20e59 Mon Sep 17 00:00:00 2001 From: iotcat Date: Sat, 27 Jun 2020 18:05:43 +0800 Subject: [PATCH] add cdn --- layout/_partial/head.swig | 10 +++++----- layout/_script/_comments/valine.swig | 4 ++-- layout/_script/aplayer.swig | 2 +- layout/_script/libs.swig | 2 +- layout/_script/pjax.swig | 2 +- layout/_script/theme.swig | 4 ++-- source/extensions/MathMenu.js | 19 +++++++++++++++++++ source/extensions/MathZoom.js | 19 +++++++++++++++++++ source/lib/mathjax/mathjax.js | 19 +++++++++++++++++++ source/lib/pjax/pjax.min.js | 1 + source/lib/valine/valine.min.js | 27 +++++++++++++++++++++++++++ 11 files changed, 97 insertions(+), 12 deletions(-) create mode 100644 source/extensions/MathMenu.js create mode 100644 source/extensions/MathZoom.js create mode 100644 source/lib/mathjax/mathjax.js create mode 100644 source/lib/pjax/pjax.min.js create mode 100644 source/lib/valine/valine.min.js diff --git a/layout/_partial/head.swig b/layout/_partial/head.swig index f0a3050..9d37c43 100644 --- a/layout/_partial/head.swig +++ b/layout/_partial/head.swig @@ -21,14 +21,14 @@ {%- if theme.ushio -%} {%- include "./_head/ushio.swig" -%} {%- else -%} - + {%- endif -%} {#- iziModal -#} - + {#- iziToast -#} - + {#- aplayer -#} {%- if theme.aplayer.enable -%} @@ -47,7 +47,7 @@ {#- Fancybox styling -#} {%- if theme.fancybox -%} - + {%- endif -%} {#- MathJax (LaTeX) support -#} @@ -59,7 +59,7 @@ {%- endif -%} {#- Theme styling -#} - + {#- Analytics and push -#} {%- if not env.debug -%} diff --git a/layout/_script/_comments/valine.swig b/layout/_script/_comments/valine.swig index 9a88c7e..2ce68c8 100644 --- a/layout/_script/_comments/valine.swig +++ b/layout/_script/_comments/valine.swig @@ -1,6 +1,6 @@ {%- 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' %} +