Amélioration de l'apparence de l'image de couverture en mode portrait
This commit is contained in:
@@ -106,14 +106,10 @@
|
||||
{{- if $coverImage -}}
|
||||
{{- $coverDisplay = $coverImage -}}
|
||||
{{- if ne $coverDisplay.MediaType.SubType "svg" -}}
|
||||
{{- $coverWidth := $coverDisplay.Width -}}
|
||||
{{- if gt $coverDisplay.Width 1480 -}}
|
||||
{{- $coverWidth = 1480 -}}
|
||||
{{- end -}}
|
||||
{{- $coverDisplay = partial "media/process-image.html" (dict
|
||||
"image" $coverImage
|
||||
"action" "Resize"
|
||||
"spec" (printf "%dx" $coverWidth)
|
||||
"action" "Fit"
|
||||
"spec" "1480x900"
|
||||
) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user