mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-07 14:16:28 +00:00
- Consolidate the code for all compact views into a single file - Make authors clickable in all compact views - Improve archetypes BREAKING CHANGES: `abstract_short` field dropped in publications and talks in favour of `summary` field. See #918 See https://github.com/gcushen/hugo-academic/issues/916#issuecomment-462274214
78 lines
2.4 KiB
HTML
78 lines
2.4 KiB
HTML
{{ partial "header.html" . }}
|
|
{{ partial "navbar.html" . }}
|
|
|
|
<article class="article article-project" itemscope itemtype="http://schema.org/Article">
|
|
|
|
{{ partial "page_header.html" . }}
|
|
|
|
<div class="article-container">
|
|
|
|
<div class="article-style" itemprop="articleBody">
|
|
{{ .Content }}
|
|
</div>
|
|
|
|
{{ partial "tags.html" . }}
|
|
{{ partial "page_author.html" . }}
|
|
|
|
{{ $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 $page.Site.Params.projects.post_view 1 }}
|
|
{{ partial "li_list" . }}
|
|
{{ else if eq $page.Site.Params.projects.post_view 3 }}
|
|
{{ partial "post_li_card" . }}
|
|
{{ else }}
|
|
{{ partial "li_compact" . }}
|
|
{{ 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 $page.Site.Params.projects.publication_view 1 }}
|
|
{{ partial "li_list" . }}
|
|
{{ else if eq $page.Site.Params.projects.publication_view 3 }}
|
|
{{ partial "publication_li_card" . }}
|
|
{{ else if eq $page.Site.Params.projects.publication_view 4 }}
|
|
{{ partial "publication_li_citation" . }}
|
|
{{ else }}
|
|
{{ partial "li_compact" . }}
|
|
{{ 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 sort $items ".Params.time_start" "desc" }}
|
|
{{ if eq $page.Site.Params.projects.talk_view 1 }}
|
|
{{ partial "li_list" . }}
|
|
{{ else if eq $page.Site.Params.projects.talk_view 3 }}
|
|
{{ partial "talk_li_card" . }}
|
|
{{ else }}
|
|
{{ partial "li_compact" . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
</div>
|
|
</article>
|
|
|
|
{{ if .Site.Params.section_pager }}
|
|
<div class="article-container article-widget">
|
|
{{ partial "section_pager.html" . }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ partial "footer_container.html" . }}
|
|
{{ partial "footer.html" . }}
|