master
xaoxuu 4 years ago
parent 5b9fdfe1e0
commit 2c23c91a7b
  1. 3
      _config.yml
  2. 2
      layout/_partial/archive.ejs
  3. 2
      layout/_partial/article.ejs
  4. 5
      layout/_third-party/mathjax.ejs
  5. 2
      layout/archive.ejs
  6. 2
      layout/list.ejs

@ -400,6 +400,9 @@ plugins:
# Codeblock Copy Button
clipboard: https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js
# mathjax
mathjax: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
######## Plugins for SEO:
# Traffic statistics (very slow loading)
busuanzi: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-busuanzi@2.3/js/busuanzi.pure.mini.js

@ -66,7 +66,7 @@
});
%>
<% if (need_mathjax){ %>
<%- partial('mathjax') %>
<%- partial('../_third-party/mathjax') %>
<% } %>
<% } %>

@ -50,7 +50,7 @@
<!-- 根据页面mathjax变量决定是否加载MathJax数学公式js -->
<% if (page.mathjax){ %>
<%- partial('mathjax') %>
<%- partial('../_third-party/mathjax') %>
<% } %>
<% if (page.layout == 'post'){ %>

@ -1,3 +1,4 @@
<script async src="<%- theme.plugins.mathjax %>"></script>
<!-- MathJax配置,可通过单美元符号书写行内公式等 -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
@ -30,7 +31,3 @@
}
});
</script>
<!-- 通过连接CDN加载MathJax的js代码 -->
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML">
</script>

@ -60,6 +60,6 @@
%>
<% if (need_mathjax){ %>
<%- partial('_partial/mathjax') %>
<%- partial('_third-party//mathjax') %>
<% } %>
<% } %>

@ -37,7 +37,7 @@
});
%>
<% if (need_mathjax){ %>
<%- partial('mathjax') %>
<%- partial('_third-party/mathjax') %>
<% } %>
<% } %>

Loading…
Cancel
Save