mermaid: use partial for codefence formatting

This commit is contained in:
Sören Weber 2022-07-02 14:00:51 +02:00
parent 01e14664ce
commit 341bad1610
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -1,4 +1,4 @@
<div class="mermaid" align="center">
{{- safeHTML .Inner -}}
</div>
{{- .Page.Store.Set "htmlHasMermaid" true }}
{{- partial "shortcodes/mermaid.html" (dict
"context" .
"content" .Inner
) }}