Skip to content

Commit

Permalink
Add capability for mathjax equations per instructions here (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanOvando authored and pacollins committed Feb 25, 2018
1 parent 187e213 commit 62b074f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions exampleSite/config.toml
Expand Up @@ -63,7 +63,9 @@ pluralizeListTitles = false
highlightjsCDN = "//cdn.bootcss.com"
highlightjsLang = ["r", "yaml", "css"]
highlightjsTheme = "github"

MathJaxCDN = "//cdn.bootcss.com"
MathJaxVersion = "2.7.1"

# Disqus will take priority over Staticman (github.com/eduardoboucas/staticman)
# due to its ease of use. Feel free to check out both and decide what you would
# prefer to use. See Staticman.yml for additional settings.
Expand Down Expand Up @@ -187,6 +189,6 @@ pluralizeListTitles = false
vine = ""
googlescholar = ""
orcid = ""
researchgate = "example"
researchgate = "example"
# Email
email = "example"
1 change: 1 addition & 0 deletions layouts/partials/footer.html
Expand Up @@ -41,5 +41,6 @@

<!-- This is called by default since this theme uses highlight.js -->
<script>hljs.initHighlightingOnLoad();</script>
{{ partial "footer_mathjax" . }}
</body>
</html>
5 changes: 5 additions & 0 deletions 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>

0 comments on commit 62b074f

Please sign in to comment.