mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-07 09:02:29 +00:00
15 lines
440 B
HTML
15 lines
440 B
HTML
{{- $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 -}}
|