Resize spotlight images

This commit is contained in:
Jens M. Sauer 2024-07-28 21:45:55 +02:00
parent 2189f7ef04
commit 21709c6ea0

View File

@ -10,11 +10,14 @@
</ul>
{{ end }}
</div>
{{ $alt := .Title }}
{{ range .Resources.ByType "image" }}
{{ with .Process "webp fit 1440x900" }}
<div class="image">
<img src="{{ .RelPermalink }}" alt="" />
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="{{ $alt }}" />
</div>
{{ end }}
{{ end }}
</section>
{{ end }}
{{ end }}