{{ define "main" }}
{{ if .Params.showBreadcrumbs | default (.Site.Params.list.showBreadcrumbs | default false) }} {{ partial "breadcrumbs.html" . }} {{ end }}

{{ .Title }}

{{ if .Content }}
{{ .Content | emojify }}
{{ end }}
{{ if .Data.Pages }}
{{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }} {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}

{{ .Key }}


{{ range .Pages }} {{ partial "article-link.html" . }} {{ end }} {{ end }} {{ else }} {{ range .Paginator.Pages }} {{ partial "article-link.html" . }} {{ end }} {{ end }}
{{ partial "pagination.html" . }} {{ else }}

{{ i18n "list.no_articles" | emojify }}

{{ end }}
{{ partial "pagination.html" . }} {{ end }}