{{- /* Usage: `callout "type"`, where `type` is one of light (default), info, danger, or warning Based on: https://github.com/twbs/bootstrap/blob/283cbd902669732943885e94115a0e29a952baf6/site/layouts/shortcodes/callout.html */ -}} {{ $css_class := "" }} {{ if .IsNamedParams -}} {{ $css_class = .Get "context" | default "light" -}} {{ else -}} {{ $css_class = .Get 0 | default "light" -}} {{ end -}} {{ $icon := .Get "icon" -}} {{ $title := .Get "title" -}} {{ $flex_direction := "row" }} {{ if or (and $icon $title) ($title) -}} {{ $flex_direction = "column"}} {{ end -}}
{{ $title | safeHTML }}
{{- end -}}