{{$class := $.Get "class"}} {{ $content_type := .Get "content" | default "text" }}
{{ with $.Get "header" }}
{{ if eq $content_type "text" }} {{ $.Get "header" | markdownify }} {{ end }} {{ if eq $content_type "html" }} {{ $.Get "header"| htmlUnescape | safeHTML }} {{ end }}
{{ end }}
{{ with $.Get "title" }}
{{ if eq $content_type "text" }} {{ $.Get "title" | markdownify }} {{ end }} {{ if eq $content_type "html" }} {{ $.Get "title"| htmlUnescape | safeHTML }} {{ end }}
{{ end }} {{ with $.Get "subtitle" }}
{{ if eq $content_type "text" }} {{ $.Get "subtitle" | markdownify }} {{ end }} {{ if eq $content_type "html" }} {{ $.Get "subtitle"| htmlUnescape | safeHTML }} {{ end }}
{{ end }} {{ with $.Inner }}
{{ if eq $content_type "text" }} {{ $.Inner | markdownify }} {{ end }} {{ if eq $content_type "html" }} {{ $.Inner | htmlUnescape | safeHTML }} {{ end }}
{{ end }}
{{ with $.Get "footer" }} {{ end }}