hugo-theme-relearn/layouts/shortcodes/mermaid.html

5 lines
215 B
HTML
Raw Normal View History

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