diff --git a/_config.yml b/_config.yml index d577529..2b2a28d 100644 --- a/_config.yml +++ b/_config.yml @@ -157,11 +157,10 @@ katex: allpost: true copy_tex: false -# mermaid 三个选项缺一不可 +# mermaid流程图 三个选项缺一不可(https://mermaid-js.github.io/mermaid/) mermaid: - enable: true - version: 8.5.2 - cdn: https://cdn.bootcdn.net/ajax/libs/mermaid + enable: false + cdn: https://cdn.jsdelivr.net/npm/mermaid@8.9.2/dist/mermaid.min.js theme: forest # 网站成立年份(默认为 2019,若填入年份小于当前年份,则显示为 2018-2019 类似的格式) @@ -235,7 +234,7 @@ twikoo: minivaline: enable: false md: true - # 更多选项 https://minivaline.js.org/docs/cn/#/Options 按照yml格式继续填写即可 (除了 [el] 选项) + # 更多选项 https://minivaline.js.org/docs/cn/#/Options 按照yml格式继续填写即可 (除了 [el] 选项) # emoticonUrl 等列表选项 可参考 https://github.com/MiniValine/hexo-next-minivaline # 下面是一个例子: backend: waline @@ -253,4 +252,4 @@ ads: title: 云服务器全球购低至2折 img: https://cdn.jsdelivr.net/gh/Shen-Yu/cdn/img/ten_2.jpg url: https://curl.qcloud.com/kvO7hb43 - width: 300 \ No newline at end of file + width: 300 diff --git a/layout/_partial/after-footer.ejs b/layout/_partial/after-footer.ejs index bce1e30..34f275d 100644 --- a/layout/_partial/after-footer.ejs +++ b/layout/_partial/after-footer.ejs @@ -1,75 +1,57 @@ -<%- js('/js/jquery-2.0.3.min') %> -<%- js('/js/lazyload.min') %> +<%- js('/js/jquery-2.0.3.min') %> <%- js('/js/lazyload.min') %> -<% if (theme.toc && is_post() && !page.no_toc){ %> -<%- js('/js/tocbot.min') %> +<% if (theme.toc && is_post() && !page.no_toc){ %> <%- js('/js/tocbot.min') %> <% } %> - + <%- js('dist/main') %> -<% if (theme.image_viewer){ %> -<%- partial('viewer') %> -<% } %> +<% if (theme.image_viewer){ %> <%- partial('viewer') %> <% } %> -<% if (theme.mathjax){ %> -<%- partial('mathjax') %> +<% if (theme.mathjax){ %> <%- partial('mathjax') %> <% } %> -<% if (theme.katex.enable){ %> -<%- partial('katex') %> -<% } %> +<% if (theme.katex.enable){ %> <%- partial('katex') %> <% } %> -<% if (theme.busuanzi && theme.busuanzi.enable){ %> -<%- js('/js/busuanzi-2.3.pure.min') %> -<% } %> +<% if (theme.busuanzi && theme.busuanzi.enable){ %> <%- +js('/js/busuanzi-2.3.pure.min') %> <% } %> -<% if (theme.click_effect===1){ %> -<%- js('/js/clickLove') %> -<% } %> +<% if (theme.click_effect===1){ %> <%- js('/js/clickLove') %> <% } %> <% if (theme.click_effect===2){ %> -<%- js('/js/clickBoom1') %> -<% } %> +<%- js('/js/clickBoom1') %> <% } %> -<% if (theme.click_effect===3){ %> -<%- js('/js/clickBoom2') %> -<% } %> +<% if (theme.click_effect===3){ %> <%- js('/js/clickBoom2') %> <% } %> -<% if (theme.copy_btn == true) { %> -<%- css('/css/clipboard') %> -<%- partial('post/clipboard') %> -<% } %> +<% if (theme.copy_btn == true) { %> <%- css('/css/clipboard') %> <%- +partial('post/clipboard') %> <% } %> -<% if (theme.canvas_bg == 1) { %> -<%- js('/js/dz') %> -<% } %> - -<% if (theme.mermaid.enable) { %> - - -<% } %> \ No newline at end of file +<% if (theme.canvas_bg == 1) { %> <%- js('/js/dz') %> <% } %> + diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index 54e92cb..905ebd9 100644 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -2,40 +2,48 @@ <% if (config.language){ %> -<% } else { %> - -<% }%> + <% } else { %> + + <% }%> - - - <% var title = page.title; if (is_archive()) { title = __('archive_a'); if - (is_month()) { title += ': ' + page.year + '/' + page.month; } else if - (is_year()) { title += ': ' + page.year; } } else if (is_category()) { title - = page.category; } else if (is_tag()) { - title = __('tag') + ': ' + page.tag; } %> <% if (page.keywords){ %> - - <% } else if (config.keywords){ %> - - <% } %> <% if (page.description){ %> - - <% } else if (config.description){ %> - - <% } %> - - - <% if (title){ %><%= title %> | <% } %> <%= config.title %> - - <% if (theme.favicon){ %> - - <% } %> - <%- css('dist/main') %> - - <%- css('css/custom') %> - <% if (theme.progressBar){ %> - - <% } %> - <%- partial('google-analytics') %> - <%- partial('baidu-analytics') %> - - - \ No newline at end of file + + + <% var title = page.title; if (is_archive()) { title = __('archive_a'); if + (is_month()) { title += ': ' + page.year + '/' + page.month; } else if + (is_year()) { title += ': ' + page.year; } } else if (is_category()) { + title = page.category; } else if (is_tag()) { title = __('tag') + ': ' + + page.tag; } %> <% if (page.keywords){ %> + + <% } else if (config.keywords){ %> + + <% } %> <% if (page.description){ %> + + <% } else if (config.description){ %> + + <% } %> + + <% if (title){ %><%= title %> | <% } %> <%= config.title %> + <% if (theme.favicon){ %> + + <% } %> <%- css('dist/main') %> + + <%- css('css/custom') %> <% if (theme.progressBar){ %> + + <% } %> <%- partial('google-analytics') %> <%- partial('baidu-analytics') + %> + + <% if (theme.mermaid.enable) { %> + + <% } %> + + +