6 lines
391 B
HTML
6 lines
391 B
HTML
{{- $type := cond .IsNamedParams (.Get "type") (.Get 0) | default "note" -}}
|
|
{{- $title := cond .IsNamedParams (.Get "title") (.Get 1) | default (T $type) -}}
|
|
{{- $open := cond .IsNamedParams (.Get "open") (.Get 2) -}}
|
|
{{- partial "plugin/admonitionPre.html" (dict "Type" $type "Title" $title "Open" $open) -}}
|
|
{{- .Inner | .Page.RenderString -}}
|
|
{{- partial "plugin/admonitionPost.html" -}} |