Import theme
This commit is contained in:
parent
51769fa6be
commit
c59ffbfeee
127 changed files with 13611 additions and 1 deletions
7
layouts/partials/mermaid.html
Normal file
7
layouts/partials/mermaid.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{{ if .Page.Store.Get "hasMermaid" }}
|
||||
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
|
||||
<script>
|
||||
const mermaidtheme = getStoredThemeStyle() === 'dark' ? 'dark' : 'base';
|
||||
mermaid.initialize({ startOnLoad: true, theme: mermaidtheme });
|
||||
</script>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue