{{ range first 1 (where site.RegularPages "Type" "featured") }}
{{ .Render "post" }}
{{ end }}
{{ range after 1 (where site.RegularPages "Type" "featured") }}
{{ partial "image.html" (dict "Src" .Params.image "Alt" .Title "Class" "img-fluid rounded-4 align-self-start" "Command" "Fill" "Size" "105x85" ) }}
{{ end }}
{{ with site.Params.advertisement }}
{{ end }}
{{with site.Params.recent_post_title}}
{{ . | markdownify}}
{{end}}
{{ $paginator:= .Paginate (where site.RegularPages "Section" "in" site.Params.mainSections ) }}
{{ range $paginator.Pages }}
{{ .Render "post" }}
{{ end }}
{{ $paginator := .Paginator }}
{{ $adjacent_links := 2 }}
{{ $max_links := (add (mul $adjacent_links 2) 1) }}
{{ $lower_limit := (add $adjacent_links 1) }}
{{ $upper_limit := (sub $paginator.TotalPages $adjacent_links) }}
{{ if gt $paginator.TotalPages 1 }}
{{ end }}