{{ define "main" }}
{{/* Default list used for homepage and taxonomy pages (e.g. tags),
  but not for sections (see section.html template) */}}
<div class="section pt-5">
  <div class="container is-max-widescreen">
    <main>
      <div class="columns is-multiline">
        {{/* Custom paginator with only blog posts (e.g. avoid "À propos") which
          are already written (avoid "incoming" posts of thematic series),
          ordered from newest to oldest */}}
        {{ $paginator := .Paginate 
          (where
            (where site.RegularPages ".Type" "in" site.Params.mainSections) 
          ".Params.incoming" "!=" true) 
        }}
        {{ range $paginator.Pages }}
        <div class="column is-variable is-one-third py-0 my-3">
          {{ .Render "summary" }}
        </div>
        {{ end }}
      </div>
      {{- partial "pagination.html" $paginator -}}
    </main>
  </div>
</div>
{{ end }}