diff options
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r-- | layouts/shortcodes/mermaid.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/shortcodes/mermaid.html b/layouts/shortcodes/mermaid.html index 1f3f18f..9a9436f 100644 --- a/layouts/shortcodes/mermaid.html +++ b/layouts/shortcodes/mermaid.html @@ -1,6 +1,11 @@ {{ if not (.Page.Scratch.Get "mermaid") }} <!-- Include mermaid only first time --> <script src="{{ "mermaid.min.js" | relURL }}"></script> +<script> +mermaid.initialize({ + flowchart: { useMaxWidth:true } +}); +</script> {{ .Page.Scratch.Set "mermaid" true }} {{ end }} |