diff options
author | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-09-10 21:20:56 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-09-10 21:20:56 +0800 |
commit | d60bfcc49a4f29c506852317cfb44f3fca6bbaf8 (patch) | |
tree | 5e1ef628c2786a2fea107d50b5ab41c059b8187a /layouts | |
parent | bd5d60906e81c0a1378075ea804a53955811c596 (diff) |
feat: MathJax config message option
eliminate all messages in the lower left-hand corner
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/scripts.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 17adea7..72bc938 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -11,7 +11,13 @@ {{- end }} <script type="text/javascript" src="{{ "dist/even.min.js?v=2.5.0" | relURL }}"></script> -{{ if and (and .Site.Params.mathjax (ne .Params.mathjax false)) (or .IsPage .IsHome) -}} +{{- if and (and .Site.Params.mathjax (ne .Params.mathjax false)) (or .IsPage .IsHome) }} + <script type="text/javascript"> + window.MathJax = { + showProcessingMessages: false, + messageStyle: 'none' + }; + </script> <script async src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML'></script> {{- end }} |