diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-11-13 00:51:09 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-11-13 00:51:09 +0100 |
| commit | b4307e276b04aa270f213c6c932a666e486dd1ad (patch) | |
| tree | 742e488af3878ffa99a92431903812aa9f5a38e9 /layouts/_default/baseof.html | |
| parent | 2214b1463f87eb4d6291e71cb65aed25f5054e08 (diff) | |
Add mermaid support for rendering graphs
Diffstat (limited to 'layouts/_default/baseof.html')
| -rw-r--r-- | layouts/_default/baseof.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 9b0edef..36f8072 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -19,6 +19,12 @@ {{ block "main" . }} {{ end }} </main> + {{ if .Store.Get "hasMermaid" }} + <script type="module"> + import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs'; + mermaid.initialize({ startOnLoad: true }); + </script> + {{ end }} </body> <footer> {{ block "footer" . }} |
