mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +02:00
Add support for global LaTeX math rendering (overrides per page math
setting)
This commit is contained in:
parent
280d5ca1d4
commit
e1faa267bf
2 changed files with 4 additions and 1 deletions
|
@ -26,6 +26,9 @@ googleAnalytics = ""
|
|||
# Examples: "Mon, Jan 2, 2006" or "2006-01-02"
|
||||
date_format = "Mon, Jan 2, 2006"
|
||||
|
||||
# Enable global LaTeX math rendering? If false, you can enable it locally on a per page basis.
|
||||
math = false
|
||||
|
||||
# Link custom CSS and JS assets (relative to /static/css and /static/js respectively)
|
||||
custom_css = []
|
||||
custom_js = []
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
|
||||
<!-- LaTeX math rendering -->
|
||||
{{ if and (isset .Params "math") (eq .Params.math true) }}
|
||||
{{ if or (and (isset .Site.Params "math") (eq .Site.Params.math true)) (and (isset .Params "math") (eq .Params.math true)) }}
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } });
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue