{{- define "main" -}}
<article class="layout panes basic-single-pane">
  <section class="layout pane">
    {{- range site.Pages.GroupByPublishDate "2006" }} 
      {{- if ne .Key "0001" }}
        <div class="archive-year">
          {{- $year := replace .Key "0001" "" }}
          <span
            class="archive-year-header"
            id="{{ $year }}">
            <a
              class="archive-header-link"
              href="#{{ $year }}">
              <h2>
                {{- $year -}}
            