diff --git a/docs/_layout/foot.html b/docs/_layout/foot.html
index f9e38282cfd..dd412e7547e 100644
--- a/docs/_layout/foot.html
+++ b/docs/_layout/foot.html
@@ -57,11 +57,9 @@
{{end}}
-
-
-
-
-
+
+
+
{{ if hasmath }}
{{ insert foot_katex.html }}
@@ -70,4 +68,4 @@
{{ insert foot_highlight.html }}
{{ end }}