7
1
mirror of https://gitlab.com/ansol/web-ansol.org.git synced 2024-11-25 07:33:16 +00:00
web-ansol.org/themes/academic/layouts/partials/thumbnail.html

11 lines
323 B
HTML
Raw Normal View History

2023-03-31 16:46:28 +00:00
{{ $cover := (.Resources.GetMatch "cover.*") }}
{{ if not $cover }}
{{ $cover := (index (.Resources.ByType "image") 0) }}
2022-09-06 20:13:38 +00:00
{{ if not $cover }}
2023-03-31 16:46:28 +00:00
{{ $cover = resources.Get "images/default-events-cover.png" }}
2022-09-06 20:13:38 +00:00
{{ end }}
2023-03-31 16:46:28 +00:00
{{ end }}
{{ with $cover }}
<img class='event-cover' src="{{ .Permalink }}" alt="" />
{{ end }}