single.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {{ partial "header.html" . }}
  2. {{ partial "navbar.html" . }}
  3. <article class="article article-project" itemscope itemtype="http://schema.org/Article">
  4. {{ partial "page_header.html" . }}
  5. <div class="article-container">
  6. {{ with .Params.external_link }}
  7. <a class="btn btn-outline-primary my-1" href="{{ . }}" target="_blank" rel="noopener">{{ i18n "open_project_site" }}</a>
  8. {{ end }}
  9. <div class="article-style" itemprop="articleBody">
  10. {{ .Content }}
  11. </div>
  12. {{ partial "tags.html" . }}
  13. {{ $page := . }}
  14. {{ $project := .File.TranslationBaseName }}
  15. {{ $project_path := printf "%s/%s/" .Section $project }}
  16. {{ if (.Site.Params.projects.list_children | default true) }}
  17. {{ $items := where (where .Site.RegularPages "Type" "publication") ".Params.projects" "intersect" (slice $project) }}
  18. {{ $items := $items | union (where (where .Site.RegularPages "Type" "publication") ".Params.url_project" $project_path) }}
  19. {{ $pubs_len := len $items }}
  20. {{ if ge $pubs_len 1 }}
  21. <h2>{{ (i18n "publications") }}</h2>
  22. {{ range $items }}
  23. {{ if eq $page.Site.Params.projects.publication_format 1 }}
  24. {{ partial "publication_li_detailed" . }}
  25. {{ else if eq $page.Site.Params.projects.publication_format 2 }}
  26. {{ partial "publication_li_apa" . }}
  27. {{ else if eq $page.Site.Params.projects.publication_format 3 }}
  28. {{ partial "publication_li_mla" . }}
  29. {{ else }}
  30. {{ partial "publication_li_simple" . }}
  31. {{ end }}
  32. {{ end }}
  33. {{ end }}
  34. {{ $items := where (where .Site.RegularPages "Type" "talk") ".Params.projects" "intersect" (slice $project) }}
  35. {{ $items := $items | union (where (where .Site.RegularPages "Type" "talk") ".Params.url_project" $project_path) }}
  36. {{ $talks_len := len $items }}
  37. {{ if ge $talks_len 1 }}
  38. <h2>{{ (i18n "talks") }}</h2>
  39. {{ range sort $items ".Params.time_start" "desc" }}
  40. {{ partial "talk_li_simple" . }}
  41. {{ end }}
  42. {{ end }}
  43. {{ end }}
  44. </div>
  45. </article>
  46. {{ if .Site.Params.section_pager }}
  47. <div class="article-container article-widget">
  48. {{ partial "section_pager.html" . }}
  49. </div>
  50. {{ end }}
  51. {{ partial "footer_container.html" . }}
  52. {{ partial "footer.html" . }}