mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-10 10:15:41 +00:00
* feature is consistent across Posts, Projects, Talks, Publications, and nodes (#105) * `image` parameter is moved under a `[header]` section at the end of existing content's frontmatter * `caption` parameter can be used to specify image credit/caption (#103) * set `preview = false` under `[header]` to hide a post's thumbnail on homepage (#113) * add example of customizing a taxonomy list page at `/tags/academic/` * revert i18n->hard-coded change for node page titles (#118)
38 lines
1.0 KiB
HTML
38 lines
1.0 KiB
HTML
{{ partial "header.html" . }}
|
|
{{ partial "navbar.html" . }}
|
|
|
|
{{ if .Params.header.image }}
|
|
<div class="article-header">
|
|
<img src="{{ "/img/" | relURL }}/{{ .Params.header.image }}" class="article-banner" itemprop="image">
|
|
{{ with .Params.header.caption }}<span class="article-header-caption">{{ . | markdownify | emojify }}</span>{{ end }}
|
|
</div>
|
|
{{end}}
|
|
|
|
<div class="universal-wrapper">
|
|
|
|
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
|
|
|
|
{{ with .Content }}
|
|
<div class="article-style" itemprop="articleBody">{{ . }}</div>
|
|
{{ end }}
|
|
|
|
{{ $paginator := .Paginate .Data.Pages }}
|
|
{{ range $paginator.Pages }}
|
|
<div>
|
|
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
|
<div class="article-style">
|
|
{{ if .Params.summary }}
|
|
{{ printf "%s" .Params.summary | markdownify }}
|
|
{{ else if .Truncated }}
|
|
{{ printf "%s" .Summary | markdownify }}
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ partial "pagination" . }}
|
|
|
|
</div>
|
|
{{ partial "footer_container.html" . }}
|
|
{{ partial "footer.html" . }}
|