<main class="content">
  <article class="post-groups">
    <div class="post-group">
    {{ range .Pages.GroupByDate "2006" }}
      <div class="post-group-item">
        <h3>{{ .Key }}</h3>
        <ul>
          {{ range .Pages }}
            <li>
              {{ if (not (isset .Params "externalurl")) }}
                <a rel="full-article" href="{{ .Permalink }}">{{ .Title }}</a>
                am <time datetime='{{ .Date | time.Format ":date_medium" }}' pubdate="">{{ .Date | time.Format ":date_medium" }}</time>
              {{ else }}
                <a rel="remote-article" href="{{ .Params.externalurl }}">{{ .Title }} →</a>
                am
                <a href="{{ .Permalink }}"> <time datetime='{{ .Date | time.Format ":date_medium" }}' pubdate="">{{ .Date | time.Format ":date_medium" }}</time> </a>
              {{ end }}
            </li>
          {{ end }}
        </ul>
      </div>
    {{ end }}
    </div>
  </article>
</main>
