add optional mermaid shotcode

This commit is contained in:
James Ray 2022-03-06 13:24:20 -05:00
parent e151dad461
commit 98ee41b0fb
No known key found for this signature in database
GPG key ID: E8AD82EF4759BD72
3 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,2 @@
{{ $_hugo_config := `{ "version": 1 }` }}
<div class="mermaid" align="{{ if .Get "align" }}{{ .Get "align" }}{{ else }}center{{ end }}">{{ safeHTML .Inner }}</div>