{{ define "main" }}
	{{if not .IsHome }}
		<h1 class="center-text">{{ .Title | markdownify | lower }}</h1>
  {{ end }}
  {{ .Content }}
  <section class="article-list">
     {{ $pages := .Pages }}
     {{ if .IsHome }}{{ $pages = where .Site.RegularPages "Section" "not in" (default "[]" .Site.Params.excludedSections) }}{{ end }}
     {{ range (where $pages "Section" "ne" "") }}
		 {{ partial "article-card.html" . }}
     {{ end }}
   </section>
{{ end }}