{{- /* Renders the header tile for an item. @params pc The page context. @params sc The site context. */ -}} {{- if ( not ( isset . "sc" ) ) -}} {{- errorf "No site context received" -}} {{- end -}} {{- if ( not ( isset . "pc" ) ) -}} {{- errorf "No page context received (%q)" .sc.Page.File.Dir -}} {{- end -}} {{ with .pc.Params.featured_image }} {{ end }}

{{- default .pc.Title .pc.Params.markup_title | .pc.Page.RenderString -}}

{{ with .pc.Params.subtitle }}

{{ . | $.pc.Page.RenderString }}

{{ end }}
{{ with ( .pc.Resources.GetMatch .pc.Params.featured_image ) }}

{{- with .Params.attrlink -}}{{- end -}} {{- .Params.attr | safeHTML -}} {{- if .Params.attrlink -}}{{- end -}} {{- if .Params.attrlicence }} ( {{- with .Params.attrlicencelink -}} {{- end -}} {{- .Params.attrlicence -}} {{- if .Params.attrlicencelink -}} {{- end -}} ) {{- end -}}

{{ end }}