{{ range .Resources.Match "*gallery*" }} {{ $thumbnail := .Resize (default "500x" (index .Params "thumb_size")) }}
{{ default (printf {{ partial "modules/hall-of-mirrors/meta.html" . }}
{{ if .Params.meta.description }} {{ .Params.meta.description }} {{ else if ne (in .RelPermalink .Title) true }} {{ .Title }} {{ end }} {{ if ne .Params.hide_credits true }} {{ with .Params.meta.creator }} Photo by {{ . }} {{ end }} {{ end }}
{{ end }}