5 lines
239 B
HTML
5 lines
239 B
HTML
|
{{ $type := or (.Get "type") "note" }}
|
||
|
{{ $title := or (.Get "title") (strings.FirstUpper $type) }}
|
||
|
{{ $text := .Inner }}
|
||
|
{{ $opts := dict "ctx" . "type" $type "title" $title "text" $text }}
|
||
|
{{ partial "components/admonition.html" $opts }}
|