feat: MathJax config message option

eliminate all messages in the lower left-hand corner
This commit is contained in:
olOwOlo 2017-09-10 21:20:56 +08:00
parent bd5d60906e
commit d60bfcc49a
No known key found for this signature in database
GPG key ID: 456394B6E7A15EA6

View file

@ -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 }}