summaryrefslogtreecommitdiff
path: root/themes/beautifulhugo/layouts/shortcodes/mermaid.html
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2019-08-03 22:26:50 +0200
committerChristoph Cullmann <cullmann@kde.org>2019-08-03 22:26:50 +0200
commitec1341fcd178d72e1accd308d1ae314702e69c01 (patch)
tree927c5113475a982af7a4809af78a8f4b4990be62 /themes/beautifulhugo/layouts/shortcodes/mermaid.html
parent05bc58562c52539f196ae4357afd80a23d34e812 (diff)
use new theme
Diffstat (limited to 'themes/beautifulhugo/layouts/shortcodes/mermaid.html')
-rw-r--r--themes/beautifulhugo/layouts/shortcodes/mermaid.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/themes/beautifulhugo/layouts/shortcodes/mermaid.html b/themes/beautifulhugo/layouts/shortcodes/mermaid.html
new file mode 100644
index 0000000..6832cf1
--- /dev/null
+++ b/themes/beautifulhugo/layouts/shortcodes/mermaid.html
@@ -0,0 +1,7 @@
+<link href="{{"css/mermaid.css" | relURL}}" type="text/css" rel="stylesheet"/>
+<script defer src="{{"js/mermaid.js" | relURL}}">
+ mermaid.initialize({startOnLoad:true});
+</script>
+<div class="mermaid" align="{{ if .Get "align" }}{{ .Get "align" }}{{ else }}center{{ end }}" >
+ {{ safeHTML .Inner }}
+</div>