talks widget: Support header image (Close #105)

This commit is contained in:
George Cushen 2017-09-25 01:47:58 +01:00
commit 586a7e17d5

View file

@ -1,6 +1,31 @@
<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>
@ -26,4 +51,5 @@
</div>
</div>
</div>
</div>