mirror of
https://gitlab.com/ansol/web-ansol.org.git
synced 2024-11-26 16:05:54 +00:00
13 lines
381 B
HTML
13 lines
381 B
HTML
<a class="img" href="{{ .Permalink }}">
|
|
{{ $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 }}" />
|
|
{{ end }}
|
|
</a>
|