Resize spotlight images
This commit is contained in:
parent
2189f7ef04
commit
21709c6ea0
@ -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 }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user