{{- $cover := ($.Resources.ByType "image").GetMatch "{*cover*,*thumbnail*,*featured*}" -}} {{ $icon := resources.GetMatch (default "" .Site.Params.icon) -}} {{- $staticIcon := "icon.png" | absURL -}} {{- $author := index ($.GetTerms "authors") 0 -}} {{/*=== title ===*/}} {{ "" | safeHTML }} {{- with .Site.Title }} {{- end -}} {{- if .IsHome}} {{- with or .Params.name .Site.Title }} {{ . }} {{- end }} {{- else }} {{ or .Params.name (print .Title " - " .Site.Title) }} {{- end -}} {{/*=== description ===*/}} {{- with or .Description .Summary .Site.Params.description }} {{- end }} {{ "" | safeHTML }} {{- with .Permalink | absURL}} {{- end -}} {{/*=== image ===*/}} {{- with or $cover $icon }} {{ "" | safeHTML }} {{- with .Width }} {{- end }} {{- with .Height }} {{- end }} {{- else }} {{ "" | safeHTML }} {{- end -}} {{/*=== extra params? ===*/}} {{- with .Params.audio }}{{ end }} {{- with .Params.locale }}{{ end }} {{- with .Params.videos }}{{- range . }} {{ end }}{{ end -}} {{/*=== section and keywords ===*/}} {{ "" | safeHTML }} {{- with .Params.categories }} {{- range . }} {{- end }} {{- end -}} {{- with .Params.tags }} {{- end -}} {{ if .Date }} {{ "" | safeHTML }} {{ with $author -}} {{- end }} {{ with .Date -}} {{ end -}} {{ with .Lastmod -}} {{ end -}} {{- else }} {{ "" | safeHTML }} {{- end -}} {{/* auxiliary info */}} {{ "" | safeHTML }} {{- with $icon }} {{- else -}} {{- end }} {{ with .OutputFormats.Get "RSS" -}} {{- end -}} {{/* robots */}} {{- "" | safeHTML }}