I can't quite debug this stuff: works locally
Some checks failed
ci/woodpecker/push/main Pipeline failed
Some checks failed
ci/woodpecker/push/main Pipeline failed
This commit is contained in:
parent
89721a34ca
commit
b4387bf01a
1 changed files with 4 additions and 6 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue