mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +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="row">
|
||||
|
||||
<h3 class="article-title" itemprop="name">
|
||||
<a href="{{ .Permalink }}" itemprop="url">{{ .Title }}</a>
|
||||
</h3>
|
||||
{{ if .Params.image_preview }}
|
||||
|
||||
<div class="talk-abstract" itemprop="text">
|
||||
{{ if .Params.abstract_short }}
|
||||
{{ .Params.abstract_short }}
|
||||
{{ else }}
|
||||
{{ .Params.abstract }}
|
||||
{{ end }}
|
||||
<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">
|
||||
|
||||
<div class="talk-event">
|
||||
{{ if .Params.event }}
|
||||
{{ .Params.event | markdownify }}
|
||||
{{ else if .Params.event_short }}
|
||||
{{ .Params.event_short | markdownify }}
|
||||
{{ end }}
|
||||
{{ 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="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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue