Files
HugoBlox-kit/layouts/partials/publication_li_detailed.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

62 lines
1.5 KiB
HTML

<div class="pub-list-item" itemscope itemtype="http://schema.org/CreativeWork">
<div class="row">
{{ if .Params.image_preview }}
<div class="col-md-12">
<a href="{{ .Permalink }}">
<img src="{{ "/img/" | relURL }}{{ .Params.image_preview }}" class="pub-banner"
itemprop="image">
</a>
</div>
<div class="col-md-12">
{{ else if .Params.header.image}}
<div class="col-md-12">
<a href="{{ .Permalink }}">
<img src="{{ "/img/" | relURL }}{{ .Params.header.image }}" class="pub-banner" itemprop="image">
</a>
</div>
<div class="col-md-12">
{{ else }}
<div class="col-md-12">
{{ end }}
<h3 class="article-title" itemprop="name">
<a href="{{ .Permalink }}" itemprop="url">{{ .Title }}</a>
</h3>
<div class="pub-abstract" itemprop="text">
{{ if .Params.abstract_short }}
{{ .Params.abstract_short }}
{{ else }}
{{ .Params.abstract }}
{{ end }}
</div>
<div class="pub-authors" itemprop="author">
{{ with .Params.authors }}
{{ delimit . ", " | markdownify }}
{{ end }}
</div>
<div class="pub-publication">
{{ if .Params.publication_short }}
{{ .Params.publication_short | markdownify }}
{{ else }}
{{ .Params.publication | markdownify }}
{{ end }}
</div>
<div class="pub-links">
{{ partial "publication_links" (dict "content" . "is_list" 1) }}
</div>
</div>
</div>
</div>