hugo-theme-relearn/layouts/shortcodes/mermaid.html
Sören Weber 8551ee2738
shortcodes: revamp shortcodes #260 #261
- supply named parameter if missing #260
- fix boolean parameter if given as string #261
- revise documentation
2022-06-05 19:31:59 +02:00

6 lines
No EOL
212 B
HTML

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