{{ define "main" }}

<head>
  <link rel="stylesheet" href="{{ .Site.BaseURL }}css/postcard.css">
  <link rel="stylesheet" href="{{ .Site.BaseURL }}css/single.css">
  <link rel="stylesheet" href="{{ .Site.BaseURL }}css/list.css">
  <link rel="stylesheet" href="{{ .Site.BaseURL }}css/main.css">
</head>
<div class="main-list">
  {{ partial "breadcrumb.html" . }} 
  <section id="main">
    <div class="single-title"> {{ .Title }} </div>
    {{ $paginator := .Paginate .Data.Pages }}
    {{ range ($paginator.Pages.GroupByDate "2006") }}
    <div class="year"><h1> {{ .Key }} </h1></div>
      {{ range .Pages }}
      {{ partial "postcard" (dict "context" . "card_type" "simple" ) }}
      {{ end }}
    {{ end }}
  </section>
  {{ partial "pagination" . }}
</div>

{{end}}
