single.html 2.4 KB

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