{{- $images := partial "_funcs/get-page-images" . -}} {{- range first 6 $images -}} {{- end -}} {{- if .IsPage }} {{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} {{ with .PublishDate }}{{ end }} {{ with .Lastmod }}{{ end }} {{- end -}} {{- with .Params.audio }}{{ end }} {{- with .Params.locale }}{{ end }} {{- with .Site.Params.title }}{{ end }} {{- with .Params.videos }}{{- range . }} {{ end }}{{ end }} {{- /* If it is part of a series, link to related articles */}} {{- $permalink := .Permalink }} {{- $siteSeries := .Site.Taxonomies.series }} {{- if $siteSeries }} {{ 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 }} {{- /* Deprecate site.Social.facebook_admin in favor of site.Params.social.facebook_admin */}} {{- $facebookAdmin := "" }} {{- with site.Params.social }} {{- if reflect.IsMap . }} {{- $facebookAdmin = .facebook_admin }} {{- end }} {{- else }} {{- with site.Social.facebook_admin }} {{- $facebookAdmin = . }} {{- warnf "The social key in site configuration is deprecated. Use params.social.facebook_admin instead." }} {{- end }} {{- end }} {{- /* Facebook Page Admin ID for Domain Insights */}} {{ with $facebookAdmin }}{{ end }}