{{- if not (eq .Kind "home") }} {{- end }} {{- with .Site.Title }} {{- end }} {{- with partial "utils/description" . }} {{- end }} {{- with $.Params.images }} {{- range first 6 . }}{{ end -}} {{- else }} {{- $featured := ($.Resources.ByType "image").GetMatch "{*feature*,*cover*,*thumbnail*}" -}} {{- with $featured }} {{- else }} {{- with $.Site.Params.images }} {{- end }} {{- end }} {{- end }} {{- with .Params.audio }} {{- end }} {{- with .Params.locale }} {{- end }} {{- with .Params.videos }} {{- range . }} {{- end }} {{- end }} {{- /* If it is part of a series, link to related articles */}} {{- if .Site.Taxonomies.series }} {{- $permalink := .Permalink -}} {{- $siteSeries := .Site.Taxonomies.series -}} {{- with .Params.series }} {{- range $name := . }} {{- $series := index $siteSeries ($name | urlize) }} {{- range $page := first 6 $series.Pages }} {{- if ne $page.Permalink $permalink }} {{- end }} {{- end }} {{- end }} {{- end }} {{- end }} {{ if .IsPage -}} {{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} {{- with .PublishDate }} {{- end }} {{- with .Lastmod }} {{- end }} {{- end }} {{- /* Facebook Page Admin ID for Domain Insights */}} {{- with .Site.Social.facebook_admin }} {{- end }}