mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
talks widget: Support header image (Close #105)
This commit is contained in:
parent
03bf79122f
commit
586a7e17d5
1 changed files with 44 additions and 18 deletions
|
@ -1,29 +1,55 @@
|
||||||
<div class="pub-list-item" itemscope itemtype="http://schema.org/CreativeWork">
|
<div class="pub-list-item" itemscope itemtype="http://schema.org/CreativeWork">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<h3 class="article-title" itemprop="name">
|
{{ if .Params.image_preview }}
|
||||||
<a href="{{ .Permalink }}" itemprop="url">{{ .Title }}</a>
|
|
||||||
</h3>
|
|
||||||
|
|
||||||
<div class="talk-abstract" itemprop="text">
|
<div class="col-md-12">
|
||||||
{{ if .Params.abstract_short }}
|
<a href="{{ .Permalink }}">
|
||||||
{{ .Params.abstract_short }}
|
<img src="{{ "/img/" | relURL }}{{ .Params.image_preview }}" class="pub-banner"
|
||||||
{{ else }}
|
itemprop="image">
|
||||||
{{ .Params.abstract }}
|
</a>
|
||||||
{{ end }}
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-12">
|
||||||
|
|
||||||
<div class="talk-event">
|
{{ else if .Params.header.image}}
|
||||||
{{ if .Params.event }}
|
|
||||||
{{ .Params.event | markdownify }}
|
<div class="col-md-12">
|
||||||
{{ else if .Params.event_short }}
|
<a href="{{ .Permalink }}">
|
||||||
{{ .Params.event_short | markdownify }}
|
<img src="{{ "/img/" | relURL }}{{ .Params.header.image }}" class="pub-banner" itemprop="image">
|
||||||
{{ end }}
|
</a>
|
||||||
</div>
|
</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="talk-abstract" itemprop="text">
|
||||||
|
{{ if .Params.abstract_short }}
|
||||||
|
{{ .Params.abstract_short }}
|
||||||
|
{{ else }}
|
||||||
|
{{ .Params.abstract }}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="talk-event">
|
||||||
|
{{ if .Params.event }}
|
||||||
|
{{ .Params.event | markdownify }}
|
||||||
|
{{ else if .Params.event_short }}
|
||||||
|
{{ .Params.event_short | markdownify }}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="talk-links">
|
||||||
|
{{ partial "talk_links" (dict "content" . "is_list" 1) }}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="talk-links">
|
|
||||||
{{ partial "talk_links" (dict "content" . "is_list" 1) }}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue