diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-05-23 16:30:26 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-05-23 16:30:26 +0200 |
commit | 5437521798291b54dabb6645de0094e458c9c228 (patch) | |
tree | 82442ce353ef00a7f0e066bd4807f8a6d6bb1145 /layouts/shortcodes/mermaid.html | |
parent | c80bd79dcd8a4bea3a15061dc6e17a46d374d485 (diff) |
#39, Finish columns shortcode, clean scss
Diffstat (limited to 'layouts/shortcodes/mermaid.html')
-rw-r--r-- | layouts/shortcodes/mermaid.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/shortcodes/mermaid.html b/layouts/shortcodes/mermaid.html new file mode 100644 index 0000000..d156f07 --- /dev/null +++ b/layouts/shortcodes/mermaid.html @@ -0,0 +1,9 @@ +{{ if not (.Page.Scratch.Get "mermaid") }} +<!-- Include mermaid only first time --> +<script src="{{ "mermaid.min.js" | absURL }}"></script> +{{ .Page.Scratch.Set "mermaid" true }} +{{ end }} + +<p class="mermaid flex align-center"> + {{ .Inner }} +</p> |