{{ $counter := 0 }}
{{ with .Resources.ByType "image" }}
{{ range . }}
<div class="col">
<img class="img-fluid" src="{{ .Resize "200x" }}">
</div>
{{ $counter = add $counter 1 }}
{{ end }}
{{ end }}
Yet the image remains completely unmanipulated. I have tried various attempts, following the examples in the docs (Image Processing | Hugo), yet I always just end up with the original image in img src.
Can someone provide a working example please? I just do not grok the Hugo docs, I guess.
hugo v0.91.2+extended darwin/amd64 BuildDate=unknown
GOOS="darwin"
GOARCH="amd64"
GOVERSION="go1.17.6"