images 500px par defaut

This commit is contained in:
gribse 2025-06-02 23:04:11 +02:00
parent e8db935193
commit 984f2e9ba3

View file

@ -9,7 +9,7 @@ Documentation and licence at https://github.com/liwenyip/hugo-easy-gallery/
<!-- use either src or link-thumb for thumbnail image -->
{{- $thumb := .Get "src" | default (printf "%s." (.Get "thumb") | replace (.Get "link") ".") }}
{{- $thumbResource := $.Page.Resources.GetMatch $thumb }}
{{- $fitSize := .Get "size" | default "400" }}
{{- $fitSize := .Get "size" | default "500" }}
{{- if $thumbResource }}
{{- $thumbResource = $thumbResource.Fit (printf "%[1]sx%[1]s webp q85" $fitSize) -}}
{{- end }}