diff options
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 |