{{ define "main" }} {{ $toc := and (.Params.showTableOfContents | default (.Site.Params.list.showTableOfContents | default false)) (in .TableOfContents " {{ if .Site.Params.list.showBreadcrumbs | default false }} {{ partial "breadcrumbs.html" . }} {{ end }}

{{ .Title }}

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

{{ .Key }}


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

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

{{ end }} {{ end }}