{{ partial "header.html" . }} {{ partial "navbar.html" . }} {{ partial "header_image.html" . }}

{{ .Title | default (i18n "publications") }}

{{ with .Content }}
{{ . }}
{{ end }} {{/* Array of distinct years. */}} {{ range .Pages.ByDate.Reverse }} {{ $year := print (.Date.Format "2006") }} {{ $.Scratch.SetInMap "years" $year $year }} {{ end }}
{{ i18n "filter_by_type" }}:
{{ range .Pages.ByDate.Reverse }} {{ if .Params.publication_types }} {{ $.Scratch.Set "pubtype" (index .Params.publication_types 0) }} {{ else }} {{ $.Scratch.Set "pubtype" 0 }} {{ end }}
{{ if eq $.Params.list_format 1 }} {{ partial "publication_li_detailed" . }} {{ else if eq $.Params.list_format 2 }} {{ partial "publication_li_apa" . }} {{ else if eq $.Params.list_format 3 }} {{ partial "publication_li_mla" . }} {{ else }} {{ partial "publication_li_simple" . }} {{ end }}
{{ end }}
{{ partial "footer_container.html" . }} {{ partial "footer.html" . }}