aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/baseof.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 313ce06..289d824 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -14,4 +14,10 @@
{{ block "main" . }}{{ end }}
{{ partial "footer.html" . }}
</body>
+{{ if .Store.Get "hasMermaid" }}
+ <script type="module">
+ import mermaid from '/js/mermaid.esm.min.mjs';
+ mermaid.initialize({ startOnLoad: true });
+ </script>
+{{ end }}
</html>