I can't quite debug this stuff: works locally
Some checks failed
ci/woodpecker/push/main Pipeline failed

This commit is contained in:
Luca Beltrame 2022-04-24 11:29:43 +02:00
parent 89721a34ca
commit b4387bf01a
Signed by: einar
GPG key ID: 4707F46E9EC72DEC

View file

@ -1,11 +1,9 @@
<div class="gallery flex justify-center"> <div class="gallery flex justify-center">
{{ range $param := .Params }} {{ range $param := .Params }}
{{ $image := resources.GetMatch ($param) }} {{ $image := resources.GetMatch ($param) }}
{{ $size := "x350" }} {{ $processed := $image.Resize ( printf "x%d %s %s %s" 350 "jpg" "q90" "Box" ) }}
{{ $options := printf "%s %s %s" $size "png q90" "Box"}} <a href="{{ $image.RelPermalink }}">
{{ $imagethumbnail := $image.Resize $options}} <img class="thumbnail w6 pa1 mr1" src="{{ $processed.RelPermalink }}" style="width: 95% !important;" />
<a href="{{ $image.RelPermalink }}">
<img class="thumbnail w6 pa1 mr1" src="{{ $imagethumbnail.RelPermalink }}" style="width: 95% !important;" />
</a> </a>
{{ end }} {{ end }}
</div> </div>