mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-29 14:36:22 +00:00
8 lines
274 B
HTML
8 lines
274 B
HTML
{{if $.Site.Data.config.enableMermaid}}
|
|
{{ if .Page.Store.Get "hasMermaid" }}
|
|
<script type="module">
|
|
import mermaid from 'https://unpkg.com/mermaid@9/dist/mermaid.esm.min.mjs';
|
|
mermaid.initialize({ startOnLoad: true });
|
|
</script>
|
|
{{ end }}
|
|
{{ end }}
|