mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-24 00:03:10 +00:00
9 lines
No EOL
255 B
HTML
9 lines
No EOL
255 B
HTML
{{- $context := .context }}
|
|
{{- $content := .content }}
|
|
{{- $align := .align | default "center" }}
|
|
{{- with $context }}
|
|
<div class="mermaid" align="{{ $align }}">
|
|
{{- $content | safeHTML -}}
|
|
</div>
|
|
{{- .Page.Store.Set "htmlHasMermaid" true }}
|
|
{{- end }} |