From 23cc80dea8cb900734770ff773b2d19c3e7d1bf4 Mon Sep 17 00:00:00 2001 From: James Date: Thu, 6 Mar 2025 08:34:55 +0000 Subject: [PATCH] Avoid resizing navbar gifs as they ruin animations (#1038) --- layouts/partials/navigators/navbar.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/navigators/navbar.html b/layouts/partials/navigators/navbar.html index 704c3ce..bc226fe 100644 --- a/layouts/partials/navigators/navbar.html +++ b/layouts/partials/navigators/navbar.html @@ -29,7 +29,7 @@ {{/* resize the logos. don't resize svg because it is not supported */}} {{ if $mainLogo }} {{ $mainLogo = resources.Get $mainLogo}} - {{ if and $mainLogo (ne $mainLogo.MediaType.SubType "svg") }} + {{ if and $mainLogo (not (or (eq $mainLogo.MediaType.SubType "svg") (eq $mainLogo.MediaType.SubType "gif"))) }} {{ $mainLogo = $mainLogo.Resize "42x" }} {{ end }} {{ $mainLogo = $mainLogo.RelPermalink}} @@ -37,7 +37,7 @@ {{ if $invertedLogo }} {{ $invertedLogo = resources.Get $invertedLogo}} - {{ if and $invertedLogo (ne $invertedLogo.MediaType.SubType "svg")}} + {{ if and $invertedLogo (not (or (eq $invertedLogo.MediaType.SubType "svg") (eq $invertedLogo.MediaType.SubType "gif"))) }} {{ $invertedLogo = $invertedLogo.Resize "42x" }} {{ end }} {{ $invertedLogo = $invertedLogo.RelPermalink}} @@ -45,7 +45,7 @@ {{ if $darkLogo }} {{ $darkLogo = resources.Get $darkLogo}} - {{ if and $darkLogo (ne $darkLogo.MediaType.SubType "svg")}} + {{ if and $darkLogo (not (or (eq $darkLogo.MediaType.SubType "svg") (eq $darkLogo.MediaType.SubType "gif"))) }} {{ $darkLogo = $darkLogo.Resize "42x" }} {{ end }} {{ $darkLogo = $darkLogo.RelPermalink}}