diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 2e63567..2ff9369 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -7,14 +7,13 @@
{{- end }}
-
-
+
+
+
{{- if or .Params.math .Site.Params.math }}
-
-
-
+{{ partial "math.html" . }}
{{- end }}