This commit is contained in:
Spedon
2023-03-20 20:19:37 +08:00
parent c445a5776d
commit 1e74555d86
9 changed files with 111 additions and 156 deletions

View File

@@ -24,11 +24,12 @@
{{ if gt (len $colors) 1 }}
{{ $sColor = index $colors 1 }}
{{ end }}
{{ $resize := .Resize "x2000 webp Lanczos q70" }}
{{ $.Scratch.Add "img" (dict
"index" (string $index)
"url" (string .RelPermalink)
"imgH" (string .Height)
"imgW" (string .Width)
"url" (string $resize.RelPermalink)
"imgH" (string $resize.Height)
"imgW" (string $resize.Width)
"pColor" (string $pColor)
"sColor" (string $sColor)) }}
{{ end }}