{{ define "main" }}
<section class="intro">
  <p>This is a place to document bits and bobs I've been up to that have interested me. Expect linux and self-hosting tinkering, some novice programming, and maybe the occasional recipe. I tend to be a fool so take anything written here with a pinch of salt :)</p>
</section>

{{ $posts := where site.RegularPages "Type" "in" site.Params.mainSections }}

<section class="archive">
  {{ $years := $posts.GroupByDate "2006" }}
  <ul class="year-list">
    {{ range $years }}
      <li>
        <span class="year">{{ .Key }}</span>
        <ul class="post-list">
          {{ range .Pages }}
            <li>
              <time>{{ .Date.Format "Jan 2" }}</time>
              <a href="{{ .RelPermalink }}">{{ .Title }}</a>
            </li>
          {{ end }}
        </ul>
      </li>
    {{ end }}
  </ul>
</section>
{{ end }}
