dashboard
repositories
filestore
activity
search
login
external-software
/
github_gohugo_theme_anatole
mirror of
https://github.com/lxndrblz/anatole.git
summary
commits
tree
docs
forks
compare
blame
|
history
|
raw
feat: update Mermaid diagrams to follow theme preference (#576)
Tim van Wijk
20.22.2025
902d1bfcae166cf9b0350bb88810e3c0162430a3
[external-software/github_gohugo_theme_anatole.git]
/
layouts
/
partials
/
mermaid.html
1
2
3
4
5
6
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 }}