{{- $type := .Get "type" | default "note" -}} {{- $icons := dict "note" "info" "tip" "lightbulb" "caution" "alert-triangle" "danger" "alert-octagon" -}} {{- $labels := dict "note" "Note" "tip" "Tip" "caution" "Caution" "danger" "Danger" -}}
{{ partial "icon.html" (index $icons $type) }} {{ with .Get "title" }}{{ . }}{{ else }}{{ index $labels $type }}{{ end }}
{{ .Inner | markdownify }}