{{ $images := slice }} {{ range $image := .Resources.ByType "image" }} {{ $title := "" }} {{ $date := "" }} {{ with $image.Exif }} {{ $date = .Date }} {{ with .Tags.ImageDescription }} {{/* Title from EXIF ImageDescription */}} {{ $title = . }} {{ end }} {{ end }} {{ if ne $image.Title $image.Name }} {{/* Title from front matter */}} {{ $title = $image.Title }} {{ end }} {{ $images = $images | append (dict "Name" $image.Name "Title" $title "Date" $date "image" $image ) }} {{ end }} {{ range sort $images (.Params.sort_by | default "Name") (.Params.sort_order | default "asc") }} {{ $image := .image }} {{ $thumbnail := $image.Filter (slice images.AutoOrient (images.Process "fit 600x600")) }} {{ $full := $image.Filter (slice images.AutoOrient (images.Process "fit 1600x1600")) }} {{ $color := index $thumbnail.Colors 0 | default "transparent" }}
{{ .Title }}
{{ with site.Params.Author }} {{ end }}
{{ end }}