single.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. </div>
  19. {{ partial "tags.html" . }}
  20. {{ $page := . }}
  21. {{ $project := .File.TranslationBaseName }}
  22. {{ $project_path := printf "%s/%s/" .Section $project }}
  23. {{ if (.Site.Params.projects.list_children | default true) }}
  24. {{ $items := where (where .Site.RegularPages "Type" "publication") ".Params.projects" "intersect" (slice $project) }}
  25. {{ $items := $items | union (where (where .Site.RegularPages "Type" "publication") ".Params.url_project" $project_path) }}
  26. {{ $pubs_len := len $items }}
  27. {{ if ge $pubs_len 1 }}
  28. <h2>{{ (i18n "publications") }}</h2>
  29. {{ range $items }}
  30. {{ if eq $page.Site.Params.projects.publication_format 1 }}
  31. {{ partial "publication_li_detailed" . }}
  32. {{ else if eq $page.Site.Params.projects.publication_format 2 }}
  33. {{ partial "publication_li_apa" . }}
  34. {{ else if eq $page.Site.Params.projects.publication_format 3 }}
  35. {{ partial "publication_li_mla" . }}
  36. {{ else }}
  37. {{ partial "publication_li_simple" . }}
  38. {{ end }}
  39. {{ end }}
  40. {{ end }}
  41. {{ $items := where (where .Site.RegularPages "Type" "talk") ".Params.projects" "intersect" (slice $project) }}
  42. {{ $items := $items | union (where (where .Site.RegularPages "Type" "talk") ".Params.url_project" $project_path) }}
  43. {{ $talks_len := len $items }}
  44. {{ if ge $talks_len 1 }}
  45. <h2>{{ (i18n "talks") }}</h2>
  46. {{ range sort $items ".Params.time_start" "desc" }}
  47. {{ partial "talk_li_simple" . }}
  48. {{ end }}
  49. {{ end }}
  50. {{ end }}
  51. </div>
  52. </article>
  53. {{ if .Site.Params.section_pager }}
  54. <div class="article-container article-widget">
  55. {{ partial "section_pager.html" . }}
  56. </div>
  57. {{ end }}
  58. {{ partial "footer_container.html" . }}
  59. {{ partial "footer.html" . }}