From 3d23e82986024e365fc07e899e77c0ddd8c03503 Mon Sep 17 00:00:00 2001 From: eyhn Date: Fri, 25 Aug 2017 13:32:27 +0800 Subject: [PATCH] fix: mathjax not work --- layout/_partials/import_js/now.ejs | 3 +++ layout/_widget/post_mathjax.ejs | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/layout/_partials/import_js/now.ejs b/layout/_partials/import_js/now.ejs index 92dbf2e..8bfca4d 100644 --- a/layout/_partials/import_js/now.ejs +++ b/layout/_partials/import_js/now.ejs @@ -21,6 +21,9 @@ <% } %> +When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are +$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ + <% // js in post and custom page if (!is_home() && !is_archive() && !is_year() && !is_month() && !is_category() && !is_tag() && page.path !== 'search/index.html' && page.layout !== 'galleries' && page.layout !== 'gallery' && page.layout !== 'friends') { %> diff --git a/layout/_widget/post_mathjax.ejs b/layout/_widget/post_mathjax.ejs index 09e2427..5df407c 100755 --- a/layout/_widget/post_mathjax.ejs +++ b/layout/_widget/post_mathjax.ejs @@ -1,7 +1,7 @@ <% if (theme.location === 'cn') { %> - + <% } else { %> - + <% } %>