diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-10 01:04:33 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-10 01:04:33 +0300 |
commit | a8124581c4e8c3f3e462f13ffe63228d7a631b79 (patch) | |
tree | 95dda80be036875b1f94293f2e1eefaeae964dc4 /layouts | |
parent | 4be90086db5e000423aed1b1cffd012dc5b603ab (diff) |
Auto-commit 2024-12-10
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/head/js.html | 4 | ||||
-rw-r--r-- | layouts/shortcodes/graph.html | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/layouts/partials/head/js.html b/layouts/partials/head/js.html index 18fe842..7e1c81d 100644 --- a/layouts/partials/head/js.html +++ b/layouts/partials/head/js.html @@ -10,3 +10,7 @@ {{- end }} {{- end }} {{- end }} +<script type="module"> + import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs'; + mermaid.initialize({ startOnLoad: true }); +</script>
\ No newline at end of file diff --git a/layouts/shortcodes/graph.html b/layouts/shortcodes/graph.html new file mode 100644 index 0000000..f914677 --- /dev/null +++ b/layouts/shortcodes/graph.html @@ -0,0 +1,3 @@ +<pre class="mermaid"> + {{ .Inner }} +</pre>
\ No newline at end of file |