Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/toryanderson/hugo-icarus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Sadowy <email not available>2017-01-20 21:30:50 +0300
committerGreg Sadowy <email not available>2017-01-20 21:30:50 +0300
commit6af05b2d649f86afccf276b0e8a636ad78fab376 (patch)
tree7bf489a0baa6d2663cc7332257ca4613159da7f3 /layouts
parent5e3f13e738fa6d9f3244b1fd1a66403f64668170 (diff)
Added option to disable MathJax
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/footer_js.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/partials/footer_js.html b/layouts/partials/footer_js.html
index 1b31a03..3b9cdba 100644
--- a/layouts/partials/footer_js.html
+++ b/layouts/partials/footer_js.html
@@ -7,7 +7,7 @@
<script src="{{ . | absURL }}"></script>
{{ end }}
-{{ "<!-- MathJax -->" | safeHTML }}
+{{ if .Site.Params.mathjax }}
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
@@ -15,3 +15,4 @@ MathJax.Hub.Config({
});
</script>
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+{{ end }} \ No newline at end of file