diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 1c3add0..13171ea 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -46,6 +46,12 @@
{{- end }}
{{- partial "mathjax.html" . -}}
+{{ if .Page.Store.Get "hasMermaid" }}
+
+{{ end }}
{{- if templates.Exists "partials/extra-foot.html" -}}{{- partial "extra-foot.html" . -}}{{- end }}