From 9e98116b0cffc5126d2b6fcbcf884f152221e87f Mon Sep 17 00:00:00 2001 From: ppoffice Date: Mon, 5 Aug 2019 23:27:11 -0400 Subject: [PATCH] fix(post): fix mathjax tutorial --- _config.theme.yml | 2 ++ source/_posts/plugin/MathJax.md | 17 ++++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/_config.theme.yml b/_config.theme.yml index d21d8da..2253b91 100644 --- a/_config.theme.yml +++ b/_config.theme.yml @@ -128,6 +128,8 @@ widgets: avatar: # Email address for the Gravatar to be shown in the profile widget gravatar: + # Whether to show avatar image rounded or square + avatar_rounded: false # Path or URL for the follow button follow_link: 'http://github.com/ppoffice' # Links to be shown on the bottom of the profile widget diff --git a/source/_posts/plugin/MathJax.md b/source/_posts/plugin/MathJax.md index d0b2eff..4ed265a 100644 --- a/source/_posts/plugin/MathJax.md +++ b/source/_posts/plugin/MathJax.md @@ -20,15 +20,14 @@ plugins: mathjax: true # options: true, false ``` -For further MathJax configurations, please edit `/layout/plugin/scripts.ejs`: -```html - <% if (theme.plugins.mathjax) { %> - - - <%- js('https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML') %> - <% } %> +For further MathJax configurations, please edit `<theme folder>/layout/plugin/mathjax.ejs`: + +```js +document.addEventListener('DOMContentLoaded', function () { + MathJax.Hub.Config({ + // Edit here + }); +}); ``` ### TeX and LaTeX input