website/themes/LoveIt/layouts/shortcodes/mermaid.html

4 lines
198 B
HTML
Raw Normal View History

2022-12-01 17:30:08 +01:00
{{- $id := dict "Content" (trim .Inner "\n") "Scratch" .Page.Scratch | partial "function/id.html" -}}
<div class="mermaid" id="{{ $id }}"></div>
{{- .Page.Scratch.SetInMap "this" "mermaid" true -}}