From 363756ffeeeb0fbd01e01696e278bc592e1049c1 Mon Sep 17 00:00:00 2001
From: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
Date: Sun, 27 Mar 2022 22:22:28 +0530
Subject: [PATCH] Remove redundant code for Label.logo: resize image amend to
1de55c4
---
layouts/partials/header.html | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 55139a29..df9fe85e 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -53,18 +53,14 @@
{{- $processableFormats = $processableFormats | append "webp" -}}
{{- end -}}
{{- $prod := (hugo.IsProduction | or (eq site.Params.env "production")) }}
- {{- $imgUrl := "" }}
{{- if and (in $processableFormats $img.MediaType.SubType) (eq $prod true)}}
{{- if site.Params.label.iconHeight }}
{{- $img = $img.Resize (printf "x%d" site.Params.label.iconHeight) }}
{{ else }}
{{- $img = $img.Resize "x30" }}
{{- end }}
- {{- $imgUrl = $img.Permalink }}
- {{- else }}
- {{- $imgUrl = site.Params.label.icon | absURL }}
{{- end }}
-
{{- else }}