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

9 lines
255 B
HTML
Raw Normal View History

{{- $context := .context }}
{{- $content := .content }}
{{- $align := .align | default "center" }}
{{- with $context }}
<div class="mermaid" align="{{ $align }}">
2022-06-22 18:51:25 +00:00
{{- $content | safeHTML -}}
</div>
{{- .Page.Store.Set "selfHasMermaid" true }}
{{- end }}