trwnh.com/unified.test.hugo/layouts/shortcodes/callout.html

5 lines
239 B
HTML
Raw Permalink Normal View History

{{ $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 }}