Merge pull request #40 from KALE1D0/master

fix mathjax in archive page
i18n
Mr. X 5 years ago committed by GitHub
commit 47c0219021
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      layout/archive.ejs

@ -33,3 +33,19 @@
</section>
</article>
<% } %>
<!-- 根据主题中的设置决定是否在archive中针对摘要部分的MathJax公式加载mathjax.js文件 -->
<%
var need_mathjax = false;
page.posts.each(function(post){
if (post.mathjax){
if (post.mathjax != "internal") {
need_mathjax = true;
}
}
});
%>
<% if (need_mathjax){ %>
<%- partial('_partial/mathjax') %>
<% } %>

Loading…
Cancel
Save