{{ $s := .Site.Params }}
{{- $posts := where .Site.RegularPages "Type" "in" $s.mainSections }} {{- $featured := default 8 $s.numberOfFeaturedPosts }} {{- with first $featured (where $posts "Params.featured" true)}}

{{ T "featured_posts" }}

{{- range . }} {{ .Title }} {{- end }} {{- end }} {{ if or (or (eq .Section "events") (eq .Params.recurrent true)) (.IsHome) }}

{{ T "recurrent" }}

{{- $posts := where .Site.RegularPages "Params.recurrent" true }} {{ range $posts }} {{ .Title }} {{ end }} {{ end }}
{{ if .IsSection }} {{ $true := false }} {{ range $taxonomyname, $taxonomy := where .Site.Taxonomies.categories ".Page.Section" .Section }} {{ if ne $taxonomyname nil }} {{ $true = true }} {{ end }} {{ end }} {{ if $true }}

{{ T "categories" }}

{{ range $taxonomyname, $taxonomy := where .Site.Taxonomies.categories ".Page.Section" .Section }}
  • {{ $taxonomyname | humanize }}
  • {{ end }} {{ end }} {{ end }}