This commit is contained in:
Robert Kaussow 2020-01-28 23:17:33 +01:00
parent 4b3810d81c
commit 7abcc895a0
4 changed files with 7 additions and 11 deletions

View file

@ -1,7 +1,7 @@
{{ if not (.Page.Scratch.Get "mermaid") }}
<!-- Include mermaid only first time -->
<script src="{{ "js/mermaid.min.js" | relURL }}"></script>
{{ .Page.Scratch.Set "mermaid" true }}
<!-- Include mermaid only first time -->
<script src="{{ "js/mermaid.min.js" | relURL }}"></script>
{{ .Page.Scratch.Set "mermaid" true }}
{{ end }}
<p class="mermaid{{ with .Get "class" }} {{ . }}{{ end }}">