{{ define "header" }}
  {{ partial "header.html" . }}
{{ end }}

{{ define "main" }}
{{- $pages := (.Paginate (first 50 (.Pages.GroupByDate "January 2006"))).PageGroups -}}
{{- range $pages -}}
  <section class="photos">
    <h6>{{ .Key | title }}</h6>
    <ul class="grid">
      {{- range .Pages -}}
        {{- .Render "li_thumbnail_in_grid" -}}
      {{- end -}}
    </ul>
  </section>
{{- end -}}
{{ end }}

{{ define "footer" }}
  {{ partial "footer.html" . }}
{{ end }}
