{{- /* 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 }}
{{- with .pc.File -}} {{- partialCached "text/item-title.html" ( dict "pc" $.pc "sc" $.sc "class" "article-header" ) .Filename -}} {{- else -}} {{- partial "text/item-title.html" ( dict "pc" $.pc "sc" $.sc "class" "article-header" ) -}} {{- end -}}
{{ with ( .pc.Resources.GetMatch .pc.Params.featured_image ) }} {{- partial "media/attr.html" ( dict "pc" $.pc "sc" $.sc "params" .Params ) -}} {{ end }}