mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 01:22:29 +00:00
Switch themes to minimo
This commit is contained in:
14
themes/minimo/layouts/partials/footer/mathjax.html
Normal file
14
themes/minimo/layouts/partials/footer/mathjax.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{{- $defaultMathjax := .Site.Data.config.default.mathjax -}}
|
||||
{{- $mathjax := ( or .Site.Data.config.mathjax $defaultMathjax ) -}}
|
||||
|
||||
{{- if eq .Params.mathjax true -}}
|
||||
|
||||
<script type='text/x-mathjax-config'>
|
||||
MathJax.Hub.Config(
|
||||
{{- $mathjax.config | jsonify -}}
|
||||
)
|
||||
</script>
|
||||
|
||||
<script type='text/javascript' async src='{{- $mathjax.library.path -}}{{- with $mathjax.library.config -}}?config={{- . -}}{{- end -}}'></script>
|
||||
|
||||
{{- end -}}
|
Reference in New Issue
Block a user