{{ define "main" }}

{{ .Title }}

{{ $subjects := .Sections }} {{ if $subjects }}

Jump to a Subject

{{ range $subjects }} {{ .Title | title }} {{ end }}
{{ end }}
{{ if $subjects }} {{ range $subjects }} {{ $indexPage := . }}

{{ .Title | title }}

{{ $topArticles := first 4 (sort .Pages "Date" "desc") }} {{/* {{ $articles := where .Site.RegularPages "Section" "articles" }} {{ $articles = first 4 (sort $articles "Date" "desc") }} */}} {{ partial "content/articles/collections/list.html" (dict "list" $topArticles "index" $indexPage ) }} {{/* {{ partial "content/articles/collections/list.html" (dict "pages" $topArticles "drillsDown" true "category" . ) }} */}} {{ end }} {{ else }} {{ partial "content/articles/collections/list.html" (dict "list" .Pages) }} {{ end }}
{{ end }}