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

github.com/coderzh/hugo-pacman-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoderzh <coderzh@gmail.com>2019-04-15 15:03:19 +0300
committercoderzh <coderzh@gmail.com>2019-04-15 15:03:19 +0300
commitdf309a2564c6af1bf7df3afedd103b910dbd3772 (patch)
treefaf1794896e7d068ed67ee5970204780ed9f6fd4
parentfe0b8dbdb20687baf2cd5286fb153c4835720758 (diff)
add MathJax option
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/partials/head.html4
2 files changed, 2 insertions, 3 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index a540302..d63208a 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -34,6 +34,7 @@ pygmentsUseClasses = true
MonthFormat = "2006年01月"
FancyBox = true
CreativeCommons = true
+ MathJax = false
[Params.GoogleAnalytics]
ID = ""
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 44a3469..576db77 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -22,9 +22,7 @@
<link rel="stylesheet" href="{{ .Site.BaseURL }}highlight/styles/github.css">
<script src="{{ .Site.BaseURL }}highlight/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
-<script type="text/javascript" async
- src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
-</script>
+ {{ if .Site.Params.MathJax }}<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>{{ end }}
<link rel="stylesheet" href="{{ .Site.BaseURL }}font/hack/css/hack.min.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css">
</head>