diff options
author | Dan Ovando <DanOvando@users.noreply.github.com> | 2018-02-25 07:19:58 +0300 |
---|---|---|
committer | Patrick Collins <thepatrickcollins@gmail.com> | 2018-02-25 07:19:58 +0300 |
commit | 62b074f4db1e5170f25d77d0c03181c94e6c1018 (patch) | |
tree | 1d9dce903192df86f39320f3e917c1b32f10c73c /layouts | |
parent | 187e213d406e03aa8cc2fa755231433c5f5aa083 (diff) |
Add capability for mathjax equations per instructions here (#126)
https://bookdown.org/yihui/blogdown/templates.html
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/footer.html | 1 | ||||
-rw-r--r-- | layouts/partials/footer_mathjax.html | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 0353f4b..dcc917f 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -41,5 +41,6 @@ <!-- This is called by default since this theme uses highlight.js --> <script>hljs.initHighlightingOnLoad();</script> + {{ 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..bd331bc --- /dev/null +++ b/layouts/partials/footer_mathjax.html @@ -0,0 +1,5 @@ +<script src="//yihui.name/js/math-code.js"></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> + |