Replace MathJax settings from footer to head

This commit is contained in:
koirand 2020-11-01 21:18:23 +09:00
parent fbe3325013
commit ef9578b083
2 changed files with 5 additions and 3 deletions

View file

@ -5,9 +5,6 @@
using the <a href="https://github.com/koirand/pulp/">pulp</a> theme.
</p>
</footer>
{{ if .Params.math .Site.Params.math}}
{{ partial "mathjax_support.html" . }}
{{ end }}
{{- range .Site.Params.custom_js -}}
<script src="{{ . }}"></script>
{{ end }}

View file

@ -50,4 +50,9 @@
{{- if and (not .Site.IsServer) .Site.GoogleAnalytics -}}
{{ template "_internal/google_analytics_async.html" . }}
{{- end -}}
<!-- MathJax -->
{{ if or .Params.math .Site.Params.math }}
{{ partial "mathjax_support.html" . }}
{{ end }}
</head>