{{ define "title" }} {{ if .Blog.Photos.Title }} {{ .Blog.Photos.Title }} - {{ .Blog.Title }} {{ else }} {{ .Blog.Title }} {{ end }} {{ end }} {{ define "main" }}
{{ with .Blog.Photos.Title }}

{{ . }}

{{ end }} {{ with .Blog.Photos.Description }}{{ md . }}{{ end }} {{ if (or .Blog.Photos.Title .Blog.Photos.Description) }}
{{ end }} {{ $blog := .Blog }} {{ range $i, $post := .Data.Posts }} {{ include "photosummary" $blog $post }} {{ end }} {{ if .Data.HasPrev }}

{{ string .Blog.Lang "prev" }}

{{ end }} {{ if .Data.HasNext }}

{{ string .Blog.Lang "next" }}

{{ end }}
{{ end }} {{ define "photos" }} {{ template "base" . }} {{ end }}