refactor: move default parameter values from template logic to params.toml (#1244)

This commit is contained in:
Jimmy
2026-01-26 15:50:18 +01:00
committed by GitHub
parent 3b753c9cc0
commit 3a03d69502
11 changed files with 33 additions and 27 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
{{- $Height = $image.Height -}}
{{- $galleryImage = true -}}
{{- if (default true .Page.Site.Params.imageProcessing.content.enabled) -}}
{{- if .Page.Site.Params.imageProcessing.content.enabled -}}
{{- $small := $image.Resize `480x` -}}
{{- $big := $image.Resize `1024x` -}}
{{- $Srcset = printf `%s 480w, %s 1024w` $small.RelPermalink $big.RelPermalink -}}