vengono scalate solo le immagini più larghe di 1400
This commit is contained in:
parent
8e873a40f3
commit
a6936a9629
@ -3,7 +3,11 @@
|
||||
{{- if not $u.IsAbs -}}
|
||||
{{- $path := strings.TrimPrefix "./" $u.Path }}
|
||||
{{- with or (.PageInner.Resources.Get $path) (resources.Get $path) -}}
|
||||
{{- $src = (.Resize "1400x jpg q50").RelPermalink -}}
|
||||
{{- if gt .Width 1400 -}}
|
||||
{{- $src = (.Resize "1400x jpg q50").RelPermalink -}}
|
||||
{{- else -}}
|
||||
{{- $src = .RelPermalink -}}
|
||||
{{- end -}}
|
||||
{{- with $u.RawQuery -}}
|
||||
{{- $src = printf "%s?%s" $src . -}}
|
||||
{{- end -}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user