|
@@ -10,68 +10,59 @@
|
|
|
{{ .Content }}
|
|
|
</div>
|
|
|
|
|
|
- {{ partial "tags.html" . }}
|
|
|
- {{ partial "page_author.html" . }}
|
|
|
+ {{ partial "page_footer" . }}
|
|
|
|
|
|
- {{ partial "comments" . }}
|
|
|
+ <div class="project-related-pages content-widget-hr">
|
|
|
+ {{ $page := . }}
|
|
|
+ {{ $project := .File.ContentBaseName }}
|
|
|
|
|
|
- {{ $page := . }}
|
|
|
- {{ $project := .File.ContentBaseName }}
|
|
|
-
|
|
|
- {{ $items := where (where site.RegularPages "Type" "post") ".Params.projects" "intersect" (slice $project) }}
|
|
|
- {{ $count := len $items }}
|
|
|
- {{ if ge $count 1 }}
|
|
|
- <h2>{{ (i18n "posts") }}</h2>
|
|
|
- {{ range $items }}
|
|
|
- {{ if eq site.Params.projects.post_view 1 }}
|
|
|
- {{ partial "li_list" . }}
|
|
|
- {{ else if eq site.Params.projects.post_view 3 }}
|
|
|
- {{ partial "li_card" . }}
|
|
|
- {{ else }}
|
|
|
- {{ partial "li_compact" . }}
|
|
|
+ {{ $items := where (where site.RegularPages "Type" "post") ".Params.projects" "intersect" (slice $project) }}
|
|
|
+ {{ $count := len $items }}
|
|
|
+ {{ if ge $count 1 }}
|
|
|
+ <h2>{{ (i18n "posts") }}</h2>
|
|
|
+ {{ range $items }}
|
|
|
+ {{ if eq site.Params.projects.post_view 1 }}
|
|
|
+ {{ partial "li_list" . }}
|
|
|
+ {{ else if eq site.Params.projects.post_view 3 }}
|
|
|
+ {{ partial "li_card" . }}
|
|
|
+ {{ else }}
|
|
|
+ {{ partial "li_compact" . }}
|
|
|
+ {{ end }}
|
|
|
{{ end }}
|
|
|
{{ end }}
|
|
|
- {{ end }}
|
|
|
|
|
|
- {{ $items := where (where site.RegularPages "Type" "publication") ".Params.projects" "intersect" (slice $project) }}
|
|
|
- {{ $pubs_len := len $items }}
|
|
|
- {{ if ge $pubs_len 1 }}
|
|
|
- <h2>{{ (i18n "publications") }}</h2>
|
|
|
- {{ range $items }}
|
|
|
- {{ if eq site.Params.projects.publication_view 1 }}
|
|
|
- {{ partial "li_list" . }}
|
|
|
- {{ else if eq site.Params.projects.publication_view 3 }}
|
|
|
- {{ partial "li_card" . }}
|
|
|
- {{ else if eq site.Params.projects.publication_view 4 }}
|
|
|
- {{ partial "li_citation" . }}
|
|
|
- {{ else }}
|
|
|
- {{ partial "li_compact" . }}
|
|
|
+ {{ $items := where (where site.RegularPages "Type" "publication") ".Params.projects" "intersect" (slice $project) }}
|
|
|
+ {{ $pubs_len := len $items }}
|
|
|
+ {{ if ge $pubs_len 1 }}
|
|
|
+ <h2>{{ (i18n "publications") }}</h2>
|
|
|
+ {{ range $items }}
|
|
|
+ {{ if eq site.Params.projects.publication_view 1 }}
|
|
|
+ {{ partial "li_list" . }}
|
|
|
+ {{ else if eq site.Params.projects.publication_view 3 }}
|
|
|
+ {{ partial "li_card" . }}
|
|
|
+ {{ else if eq site.Params.projects.publication_view 4 }}
|
|
|
+ {{ partial "li_citation" . }}
|
|
|
+ {{ else }}
|
|
|
+ {{ partial "li_compact" . }}
|
|
|
+ {{ end }}
|
|
|
{{ end }}
|
|
|
{{ end }}
|
|
|
- {{ end }}
|
|
|
|
|
|
- {{ $items := where (where site.RegularPages "Type" "talk") ".Params.projects" "intersect" (slice $project) }}
|
|
|
- {{ $talks_len := len $items }}
|
|
|
- {{ if ge $talks_len 1 }}
|
|
|
- <h2>{{ (i18n "talks") }}</h2>
|
|
|
- {{ range $items }}
|
|
|
- {{ if eq site.Params.projects.talk_view 1 }}
|
|
|
- {{ partial "li_list" . }}
|
|
|
- {{ else if eq site.Params.projects.talk_view 3 }}
|
|
|
- {{ partial "li_card" . }}
|
|
|
- {{ else }}
|
|
|
- {{ partial "li_compact" . }}
|
|
|
+ {{ $items := where (where site.RegularPages "Type" "talk") ".Params.projects" "intersect" (slice $project) }}
|
|
|
+ {{ $talks_len := len $items }}
|
|
|
+ {{ if ge $talks_len 1 }}
|
|
|
+ <h2>{{ (i18n "talks") }}</h2>
|
|
|
+ {{ range $items }}
|
|
|
+ {{ if eq site.Params.projects.talk_view 1 }}
|
|
|
+ {{ partial "li_list" . }}
|
|
|
+ {{ else if eq site.Params.projects.talk_view 3 }}
|
|
|
+ {{ partial "li_card" . }}
|
|
|
+ {{ else }}
|
|
|
+ {{ partial "li_compact" . }}
|
|
|
+ {{ end }}
|
|
|
{{ end }}
|
|
|
{{ end }}
|
|
|
- {{ end }}
|
|
|
-
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</article>
|
|
|
-
|
|
|
-{{ if site.Params.section_pager }}
|
|
|
-<div class="article-container article-widget">
|
|
|
- {{ partial "section_pager.html" . }}
|
|
|
-</div>
|
|
|
-{{ end }}
|
|
|
-
|
|
|
{{- end -}}
|