mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-06-02 07:39:51 -04:00
Merge f45b5a020d
into 7cf752f864
This commit is contained in:
commit
b36ab9fa54
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
|||
{{- end -}}
|
||||
{{- $prod := (hugo.IsProduction | or (eq site.Params.env "production")) }}
|
||||
{{- if and (in $processableFormats $img.MediaType.SubType) (eq $prod true)}}
|
||||
{{- if (not (and (not .imageHeight) (not .imageWidth))) }}
|
||||
{{- if and .imageWidth .imageHeight }}
|
||||
{{- $img = $img.Resize (printf "%dx%d" .imageWidth .imageHeight) }}
|
||||
{{- else if .imageHeight }}
|
||||
{{- $img = $img.Resize (printf "x%d" .imageHeight) }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue