mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
footer.html: Shorten if condition for MathJAX (#40)
Signed-off-by: Stephan Kulla <git.mail@kulla.me>
This commit is contained in:
parent
9c5205097a
commit
a4eb23b3dc
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@
|
||||||
<script>hljs.initHighlightingOnLoad();</script>
|
<script>hljs.initHighlightingOnLoad();</script>
|
||||||
|
|
||||||
<!-- LaTeX math rendering -->
|
<!-- LaTeX math rendering -->
|
||||||
{{ if or (and (isset .Site.Params "math") (eq .Site.Params.math true)) (and (isset .Params "math") (eq .Params.math true)) }}
|
{{ if or .Params.math .Site.Params.math }}
|
||||||
<script type="text/x-mathjax-config">
|
<script type="text/x-mathjax-config">
|
||||||
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } });
|
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } });
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue