{{ $disableImageOptimization := .Page.Site.Params.disableImageOptimization | default false }} {{- with site.Params.images -}} {{- range first 6 . }} {{ end -}} {{- else -}} {{- $images := .Page.Resources.ByType "image" -}} {{- $featured := $images.GetMatch "*feature*" -}} {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} {{- with $featured -}} {{ if $disableImageOptimization }} {{ with . }}
{{ end }} {{ else }} {{ with .Resize "600x" }}
{{ end }} {{ end }} {{- else -}} {{- with site.Params.images }} {{ end -}} {{- end -}} {{- end -}} {{ if site.Params.taxonomy.showTermCount | default true }} {{ .Count }} {{ end }}
{{ .Page.Title | emojify }}