diff --git a/layout/archive.ejs b/layout/archive.ejs index da2e4c4..4cfcfc0 100755 --- a/layout/archive.ejs +++ b/layout/archive.ejs @@ -33,3 +33,19 @@ <% } %> + + +<% +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') %> +<% } %>