{{- if .IsPage -}} {{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} {{ with .PublishDate }}{{ end}} {{ with .Lastmod }}{{ end}} {{- $images := partial "_funcs/get-page-images" . -}} {{- range first 6 $images -}} {{- end -}} {{- end -}}