mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2025-04-24 16:11:30 +00:00
Fix mermaid scaling for flowchart
This commit is contained in:
parent
3011d3351d
commit
831e570f16
@ -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 }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user