mirror of
https://gitlab.com/ansol/web-ansol.org.git
synced 2024-11-28 16:57:41 +00:00
11 lines
323 B
HTML
11 lines
323 B
HTML
{{ $cover := (.Resources.GetMatch "cover.*") }}
|
|
{{ if not $cover }}
|
|
{{ $cover := (index (.Resources.ByType "image") 0) }}
|
|
{{ if not $cover }}
|
|
{{ $cover = resources.Get "images/default-events-cover.png" }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ with $cover }}
|
|
<img class='event-cover' src="{{ .Permalink }}" alt="" />
|
|
{{ end }}
|