{{ $active := .active | default "posts" }} {{ $tabs := slice (dict "id" "posts" "label" "Posts" "href" ("/" | relURL)) (dict "id" "projects" "label" "Projects" "href" ("/projects/" | relURL)) (dict "id" "publications" "label" "Publications" "href" ("/publications/" | relURL)) (dict "id" "contact" "label" "Contact" "href" ("/contact/" | relURL)) }}

{{ title $active }}

{{ if eq $active "publications" }} {{ partial "publication-list.html" hugo.Data.publications }} {{ else if eq $active "projects" }} {{ partial "page-list.html" (where site.RegularPages "Section" "projects") }} {{ else if eq $active "contact" }} {{ partial "contact-section.html" . }} {{ else }} {{ partial "post-list.html" (where site.RegularPages "Section" "posts") }} {{ end }}