{{ define "title" }} {{ $blog := (blog .Blog) }} {{ if $blog.Photos.Title }} {{ $blog.Photos.Title }} - {{ $blog.Title }} {{ else }} {{ $blog.Title }} {{ end }} {{ end }} {{ define "main" }}
{{ $blog := (blog .Blog) }} {{ with $blog.Photos.Title }}

{{ . }}

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

Prev

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

Next

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