{{- $fallbackTitle := "" }} {{- if eq .Section "responses" }} {{ range .Params.inReplyTo }} {{- if . }} {{- $fallbackTitle = printf "in response to %s" (or .name .url) }} {{- end }} {{- end }} {{- else if eq .Section "kb" }} {{- $firstH1 := partial "firstH1.html" . }} {{- $fallbackTitle = or $firstH1 $.File.ContentBaseName }} {{- end }} {{- $title := or .Title $fallbackTitle }} {{- $fullTitle := print .Site.Title " | " $title}} {{- $cover := ($.Resources.ByType "image").GetMatch "{*opengraph*}" -}} {{ $icon := resources.GetMatch (or .Site.Params.icon ("icon.png" | absURL)) -}} {{- $author := or .Params.author .Site.Params.author }} {{- $author_string := "" }} {{/* TODO: clean up this mess */}} {{ partial "head/title.html" (dict "title" $title "fullTitle" $fullTitle) }} {{ partial "head/description.html" . }} {{ partial "head/url.html" . }} {{ partial "head/icon.html" $icon }} {{ partial "head/theme-color.html" . }} {{ partial "head/site.html" . }} {{ partial "head/robots.html" . }}