{{- with $.Params.images -}} {{- range first 6 . }}{{ end -}} {{- else -}} {{- $images := $.Resources.ByType "image" -}} {{- $featured := $images.GetMatch "*feature*" -}} {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} {{- with $featured -}} {{- else -}} {{- with $.Site.Params.images -}} {{- range first 6 . }}{{ end -}} {{- end -}} {{- 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 -}} {{- with .Params.audio }}{{ end }} {{- with .Params.locale }}{{ end }} {{- with .Site.Params.title }}{{ end }} {{- with .Params.videos -}} {{- range . }} {{ end -}} {{- end -}}