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

github.com/calintat/minimal.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Bechstein <f@ub0r.de>2018-02-24 22:43:14 +0300
committerCalin Tataru <calintat@gmail.com>2018-02-24 22:43:14 +0300
commitce05d4814ac707cd597ceabe298cfd14baa91554 (patch)
tree90e5687b29840606892d187d47e8c53a63440893
parent8c38052502970a4b901e26d6f7714ef968a75e73 (diff)
Make mathjax optional (#53)
-rw-r--r--layouts/partials/header.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index dfeee42..2adaea6 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -24,10 +24,12 @@
{{ end }}
</head>
+ {{ if .Site.Params.MathJax | default true }}
<!-- adds MathJax support -->
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
- </script>
+ </script>
+ {{ end }}
<body>
{{ partial "body-open" . }}