summaryrefslogtreecommitdiffstats
path: root/docs/layouts/partials/hooks/before-body-end.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/layouts/partials/hooks/before-body-end.html')
-rw-r--r--docs/layouts/partials/hooks/before-body-end.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/layouts/partials/hooks/before-body-end.html b/docs/layouts/partials/hooks/before-body-end.html
index fb7ae20ba..dab653508 100644
--- a/docs/layouts/partials/hooks/before-body-end.html
+++ b/docs/layouts/partials/hooks/before-body-end.html
@@ -1,6 +1,7 @@
{{ if .Page.Store.Get "hasMermaid" }}
- <script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
- <script>
+ <script type="module" async>
+ import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@9/+esm';
+
mermaid.initialize({ startOnLoad: true });
</script>
{{ end }}