{{- $images := $.Resources.ByType "image" -}} {{ $featured := ($images.GetMatch (.Params.featured_image | default "*feature*")) | default (index $images 0) }} {{- with $featured -}} {{- end -}} {{- if .IsPage }} {{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} {{ with .PublishDate }}{{ end }} {{ with .Lastmod }}{{ end }} {{- end -}} {{- with .Params.locale }}{{ end }} {{- with .Site.Params.title }}{{ end }}