diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 35257fc..8a54710 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -73,6 +73,7 @@
{{- else }}
{{- end }}
+{{ if .Params.math }}{{ partial "katex.html" . }}{{ end }}
{{- /* Search */}}
{{- if (eq .Layout `search`) -}}
diff --git a/layouts/partials/katex.html b/layouts/partials/katex.html
new file mode 100644
index 0000000..eb1336a
--- /dev/null
+++ b/layouts/partials/katex.html
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file