{{- with $photoPage := $.Page.GetPage (printf "photos/%s" (.Get 0)) -}} {{- $thumbnail := partial "photos/thumbnail.html" (dict "Page" . "Width" 1280 "Height" 1280) -}} {{- $altText := $thumbnail.Params.alt | default .Title -}}
{{ . }}
{{ .Title }}
{{- else -}} {{- errorf "No page matching '%s'" (.Get 0) -}} {{- end -}}