Files
blog/layouts/partials/extend_footer.html
T

8 lines
299 B
HTML
Raw Normal View History

{{- if .Store.Get "hasMermaid" }}
<script type="module">
import mermaid from "https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs";
const theme = document.body.classList.contains("dark") ? "dark" : "default";
mermaid.initialize({ startOnLoad: true, theme });
</script>
{{- end }}