hugo-theme-hilfe/layouts/shortcodes/mermaid.html
Robert Kaussow 7abcc895a0 cleanup
2020-01-28 23:17:33 +01:00

9 lines
275 B
HTML

{{ if not (.Page.Scratch.Get "mermaid") }}
<!-- 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 }}">
{{ .Inner }}
</p>