From ef9578b0836148a852b20e741fff6ec4ddb3c853 Mon Sep 17 00:00:00 2001
From: koirand
Date: Sun, 1 Nov 2020 21:18:23 +0900
Subject: [PATCH] Replace MathJax settings from footer to head
---
layouts/partials/footer.html | 3 ---
layouts/partials/head.html | 5 +++++
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 79959be..a35c5a4 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -5,9 +5,6 @@
using the pulp theme.
-{{ if .Params.math .Site.Params.math}}
- {{ partial "mathjax_support.html" . }}
-{{ end }}
{{- range .Site.Params.custom_js -}}
{{ end }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 491bdbf..f0769fe 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -50,4 +50,9 @@
{{- if and (not .Site.IsServer) .Site.GoogleAnalytics -}}
{{ template "_internal/google_analytics_async.html" . }}
{{- end -}}
+
+
+ {{ if or .Params.math .Site.Params.math }}
+ {{ partial "mathjax_support.html" . }}
+ {{ end }}