hugo-theme-relearn/layouts/shortcodes/mermaid.html
2022-03-16 22:40:38 +01:00

5 lines
No EOL
211 B
HTML

{{- $_hugo_config := `{ "version": 1 }` }}
<div class="mermaid" align="{{ if .Get "align" }}{{ .Get "align" }}{{ else }}center{{ end }}">
{{- safeHTML .Inner -}}
</div>
{{- .Page.Store.Set "hasMermaid" true }}