mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-24 18:16:20 +00:00
* add project showcase layout, set `view = 2` in `projects.md` to use * revert card view to use resized images rather than cropped images * fix project filters for tags with non-ASCII (i18n) characters * add single column wide layout for project widget, to use set `widget_layout` in `projects.md` * add `flip_alt_rows` widget option to flip alternate rows in showcase mode * `url_` link buttons can now be added for projects * all link buttons now appear in page header rather than under a 'links' section within the page * Markdown slides can now be linked from any page by using new `slides` option * Isotope JS is now only activated when required (i.e. when using card view or when filters are defined) * `links` translation removed from i18n * consolidate talk, pub., and new project links files into new single `page_links.html` for all pages * move project widget layouts to their own files Close #764 Close #785 Close #776 Close #645 Close #326 BREAKING CHANGE: CSS class names of project tags are now prefixed with `js-id-` to namespace them and prevent clashes with existing CSS classes. Migrate any filter `tag`s in `projects.md` that are prefixed `.` to the new `.js-id-` prefix.
76 lines
2.8 KiB
HTML
76 lines
2.8 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 := .Slug }}
|
|
{{ if not $project }}{{/* If user did not explicitly set `slug` in front matter. */}}
|
|
{{ $project = .File.TranslationBaseName }}
|
|
{{ end }}
|
|
{{ if eq $project "index" }}{{/* Check if using dir-based page bundles. */}}
|
|
{{ $project = delimit (last 1 (split (substr .Dir 0 -1) "/")) "" }}
|
|
{{ end }}
|
|
{{ $project_path := .RelPermalink }}
|
|
|
|
{{ if (.Site.Params.projects.list_children | default true) }}
|
|
{{ $items := where (where .Site.RegularPages "Type" "publication") ".Params.projects" "intersect" (slice $project) }}
|
|
{{ $items := $items | union (where (where .Site.RegularPages "Type" "publication") ".Params.url_project" $project_path) }}
|
|
{{ $pubs_len := len $items }}
|
|
{{ if ge $pubs_len 1 }}
|
|
<h2>{{ (i18n "publications") }}</h2>
|
|
{{ range $items }}
|
|
{{ if eq $page.Site.Params.projects.publication_format 1 }}
|
|
{{ partial "publication_li_detailed" . }}
|
|
{{ else if eq $page.Site.Params.projects.publication_format 2 }}
|
|
{{ partial "publication_li_apa" . }}
|
|
{{ else if eq $page.Site.Params.projects.publication_format 3 }}
|
|
{{ partial "publication_li_mla" . }}
|
|
{{ else if eq $page.Site.Params.projects.publication_format 4 }}
|
|
{{ partial "publication_li_stream" . }}
|
|
{{ else }}
|
|
{{ partial "publication_li_simple" . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ $items := where (where .Site.RegularPages "Type" "talk") ".Params.projects" "intersect" (slice $project) }}
|
|
{{ $items := $items | union (where (where .Site.RegularPages "Type" "talk") ".Params.url_project" $project_path) }}
|
|
{{ $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_format 1 }}
|
|
{{ partial "talk_li_detailed" . }}
|
|
{{ else if eq $page.Site.Params.projects.talk_format 2 }}
|
|
{{ partial "talk_li_stream" . }}
|
|
{{ else }}
|
|
{{ partial "talk_li_simple" . }}
|
|
{{ end }}
|
|
{{ 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" . }}
|