{{ if eq .Type "alert" }} {{- $type := .AlertType -}} {{- $icons := site.Params.article.alertIcon -}} {{- $icon := index $icons $type -}}
{{ else }}{{- with .AlertTitle -}} {{ . }} {{- else -}} {{ or (i18n (printf "article.alert.%s" $type)) (title $type) }} {{- end -}}{{ .Text }}
{{ .Text }}{{ end }}