{{ with $.Param "images" }}{{ range first 6 . }} {{ end }}{{ end }} {{- if .IsPage }} {{- if not .PublishDate.IsZero }} {{ else if not .Date.IsZero }} {{ end }} {{- if not .Lastmod.IsZero }}{{ end }} {{- else }} {{- if not .Date.IsZero }} {{- end }} {{- end }}{{/* .IsPage */}} {{- 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 }}{{ with .Params.series }} {{- range $name := . }} {{- $series := index $siteSeries $name }} {{- range $page := first 6 $series.Pages }} {{- if ne $page.Permalink $permalink }}{{ end }} {{- end }} {{ end }}{{ end }} {{- if .IsPage }} {{- range .Site.Authors }}{{ with .Social.facebook }} {{ end }}{{ with .Site.Social.facebook }} {{ end }} {{- with .Params.tags }}{{ range first 6 . }} {{ end }}{{ end }} {{- end }}{{ end }} {{- /* Facebook Page Admin ID for Domain Insights */}} {{- with .Site.Social.facebook_admin }}{{ end }}