Files
HugoBlox-kit/layouts/project/single.html
T
George Cushen dccca171a7 Add full-width header image option for all content pages
* 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)
2017-02-11 20:30:10 +00:00

40 lines
1.1 KiB
HTML

{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<article class="article article-project" itemscope itemtype="http://schema.org/Article">
{{ 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="article-container">
<div class="pub-title">
<h1 itemprop="name">{{ .Title }}</h1>
<span class="pub-authors" itemprop="author">&nbsp;</span>
<span class="pull-right">
{{ partial "share.html" . }}
</span>
</div>
{{ with .Params.external_link }}
<a class="btn btn-primary btn-outline" href="{{ . }}" target="_blank">{{ i18n "open_project_site" }}</a>
{{ end }}
<div class="article-style" itemprop="articleBody">
{{ .Content }}
</div>
</div>
</article>
<div class="container">
{{ partial "section_pager.html" . }}
</div>
{{ partial "footer_container.html" . }}
{{ partial "footer.html" . }}