<!-- This page is the same as the Archives page -->
{{ define "main" }}
<!-- All of the site's posts grouped by year -->
  <h1>
    Archives
  </h1>
  <div>
     <!-- Group all the post pages from the same year -->
      {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
      {{ range ($pages.GroupByDate "2006") }}
          <h3>{{ .Key }}</h3> <!-- Display the year -->

          <ul class="archives-list"> 
            
              {{ range (.Pages) }}
             
           