diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 4a7291e2..065b36fe 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -54,17 +54,23 @@
{{- end -}}
{{- $prod := (hugo.IsProduction | or (eq site.Params.env "production")) }}
{{- if and (in $processableFormats $img.MediaType.SubType) (eq $prod true)}}
- {{- if site.Params.label.iconHeight }}
+ {{- if (and (site.Params.label.iconHeight) (site.Params.label.iconWidth)) }}
+ {{- $img = $img.Resize (printf "%dx%d" site.Params.lable.iconWidth site.Params.label.iconHeight) }}
+ {{- else if site.Params.label.iconHeight}}
{{- $img = $img.Resize (printf "x%d" site.Params.label.iconHeight) }}
+ {{ else if site.Params.label.iconWidth }}
+ {{- $img = $img.Resize (printf "%dx" site.Params.label.iconWidth) }}
{{ else }}
- {{- $img = $img.Resize "x30" }}
+ {{- $img = $img.Resize "30x30" }}
{{- end }}
{{- end }}
+ height="{{- site.Params.label.iconHeight | default "30" -}}"
+ width="{{- site.Params.label.iconWidth | default "30" -}}">
{{- else }}
+ height="{{- site.Params.label.iconHeight | default "30" -}}
+ width="{{- site.Params.label.iconWidth | default "30" -}}">
{{- end -}}
{{- else if hasPrefix site.Params.label.iconSVG "