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

github.com/yoshiharuyamashita/blackburn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoshiharu Yamashita <yoshiharuyamashita@users.noreply.github.com>2019-10-03 10:45:23 +0300
committerGitHub <noreply@github.com>2019-10-03 10:45:23 +0300
commita0e7a3196f82137ce3305a0d0d95a8ce575825d7 (patch)
tree8efc7c323172d750ebd2f1950a15c145ddf8e8f5
parent09001c2f83f5cd446b72e88a3a69c6b349415511 (diff)
parent16f3f0c8d4fb81aa29e51a1306363015cbc99efb (diff)
Merge pull request #62 from stevenranney/master
Add mathjax partials (and capabilities) to Blackburn theme.
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/partials/footer_mathjax.html4
2 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 0ce4001..42af21b 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -5,6 +5,8 @@
{{ partial "google_analytics.html" . }}
{{ partial "piwik_analytics.html" . }}
+{{ partial "footer_mathjax" . }}
+
</body>
</html>
diff --git a/layouts/partials/footer_mathjax.html b/layouts/partials/footer_mathjax.html
new file mode 100644
index 0000000..2bacfd6
--- /dev/null
+++ b/layouts/partials/footer_mathjax.html
@@ -0,0 +1,4 @@
+{{ if and (not .Params.disable_mathjax) (or (in (string .Content) "\\") (in (string .Content) "$")) }}
+<script src="{{ "/js/math-code.js" | relURL }}"></script>
+ <script async src="{{ .Site.Params.MathJaxCDN | default "//cdn.bootcss.com" }}/mathjax/{{ .Site.Params.MathJaxVersion | default "2.7.1" }}/MathJax.js?config=TeX-MML-AM_CHTML"></script>
+ {{ end }} \ No newline at end of file