diff options
author | Yoshiharu Yamashita <yoshiharuyamashita@users.noreply.github.com> | 2019-10-03 10:45:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-03 10:45:23 +0300 |
commit | a0e7a3196f82137ce3305a0d0d95a8ce575825d7 (patch) | |
tree | 8efc7c323172d750ebd2f1950a15c145ddf8e8f5 | |
parent | 09001c2f83f5cd446b72e88a3a69c6b349415511 (diff) | |
parent | 16f3f0c8d4fb81aa29e51a1306363015cbc99efb (diff) |
Merge pull request #62 from stevenranney/master
Add mathjax partials (and capabilities) to Blackburn theme.
-rw-r--r-- | layouts/partials/footer.html | 2 | ||||
-rw-r--r-- | layouts/partials/footer_mathjax.html | 4 |
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 |