{{- define "main" }}
    {{ $paginator := .Paginate (cond .IsHome (where site.RegularPages "Type" "in" site.Params.mainSections) (.Data.Pages) ) }}
    {{ $counter := 0 }}
    {{ range $paginator.Pages }}
        <article class="card{{ if eq $counter 0 }} card--featured{{ else if gt $counter 2 }} card--additional{{ end }}{{ if not .Params.feature }} card--coverless{{ end }}">
            {{- if .Params.feature }}
                {{ .Scratch.Set "processing" "resize" }}
                {{ .Scratch.Set "size"