{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
{{ (i18n "posts") }}
        {{ range $items }}
          {{ if eq $page.Site.Params.projects.post_format 0 }}
            {{ partial "post_li_simple" . }}
          {{ else if eq $page.Site.Params.projects.post_format 1 }}
            {{ partial "post_li_detailed" . }}
          {{ else }}
            {{ partial "post_li_stream" . }}
          {{ end }}
        {{ end }}
      {{ end }}
      {{ $items := where (where .Site.RegularPages "Type" "publication") ".Params.projects" "intersect" (slice $project) }}
      {{ $items := $items | union (where (where .Site.RegularPages "Type" "publication") ".Params.url_project" $project_path) }}
      {{ $pubs_len := len $items }}
      {{ if ge $pubs_len 1 }}
        {{ (i18n "publications") }}
        {{ range $items }}
          {{ if eq $page.Site.Params.projects.publication_format 1 }}
            {{ partial "publication_li_detailed" . }}
          {{ else if eq $page.Site.Params.projects.publication_format 2 }}
            {{ partial "publication_li_apa" . }}
          {{ else if eq $page.Site.Params.projects.publication_format 3 }}
            {{ partial "publication_li_mla" . }}
          {{ else if eq $page.Site.Params.projects.publication_format 4 }}
            {{ partial "publication_li_stream" . }}
          {{ else }}
            {{ partial "publication_li_simple" . }}
          {{ end }}
        {{ end }}
      {{ end }}
      {{ $items := where (where .Site.RegularPages "Type" "talk") ".Params.projects" "intersect" (slice $project) }}
      {{ $items := $items | union (where (where .Site.RegularPages "Type" "talk") ".Params.url_project" $project_path) }}
      {{ $talks_len := len $items }}
      {{ if ge $talks_len 1 }}
        {{ (i18n "talks") }}
        {{ range sort $items ".Params.time_start" "desc" }}
          {{ if eq $page.Site.Params.projects.talk_format 1 }}
            {{ partial "talk_li_detailed" . }}
          {{ else if eq $page.Site.Params.projects.talk_format 2 }}
            {{ partial "talk_li_stream" . }}
          {{ else }}
            {{ partial "talk_li_simple" . }}
          {{ end }}
        {{ end }}
      {{ end }}
    {{ end }}