{{ if .AlertType }} {{/* this is an alert/admonition, not a quote */}} {{ else }} {{/* this is a quote, which we can render with an h-cite partial */}} {{ $datapath := (split (.Attributes.card) "/") }} {{ $author := .Page.Site.Data.people }} {{ range $datapath }} {{ $author = index $author . }} {{ end }} {{ $content := .Text }} {{ $cite := .Attributes.cite }} {{ $name := .Attributes.name }} {{ $caption := .Attributes.caption }} {{ $opts := dict "ctx" . "author" $author "content" $content "cite" $cite "name" $name "caption" $caption }} {{ partial "mf2/h-cite.html" $opts }} {{ end }}