-
{{ range $page := sort (where .Site.RegularPages "Type" "photo") ".Dir" }}
{{ range $index, $image := sort ($page.Resources.ByType "image") "Params.order" }}
-
{{- if isset . "LensModel" }}
- {{- if not (hasPrefix (lower .LensModel) (lower .Make)) }}{{ .LensModel }} {{- else }}{{ substr .LensModel (len .Make)}}{{ end }} @ {{ .FocalLength }}mm
{{- end }} {{- with .ExposureTime }}- S.S. {{ . }}s
{{ end }} {{- with .FNumber }}- A. f/{{ . }}
{{ end }} {{- with .ISOSpeedRatings }}- ISO {{ . }}
{{ end }} {{ end -}}- Taken at {{ if isset $image.Params "timestamp" }} {{ $image.Params.timestamp }} {{ else }}{{ .Date.Format "2006-1-2 15:04" }}{{ end }}
{{ end }}"> {{ $.Scratch.Set "thumbnail" ($image.Resize "x250") }}
{{ end }}
{{ end }}