From 96fda4132a08343b3c1000ae9ef59262676a4f9c Mon Sep 17 00:00:00 2001 From: teldra Date: Mon, 9 May 2022 23:06:48 +0200 Subject: [PATCH] small fixes --- themes/buha/layouts/partials/snippets/banner.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/buha/layouts/partials/snippets/banner.html b/themes/buha/layouts/partials/snippets/banner.html index c888512..f1e857e 100644 --- a/themes/buha/layouts/partials/snippets/banner.html +++ b/themes/buha/layouts/partials/snippets/banner.html @@ -16,18 +16,18 @@ {{ end }} {{ $banner := printf "/images/banner/%s*" $what }} {{ if resources.GetMatch $banner }} - {{ $img = (resources.GetMatch $banner).Fill "1280x480 smart" }} + {{ $img = (resources.GetMatch $banner).Fill "1280x320 smart" }} {{ end }} -{{ $height := safeCSS "min-height: 460px; max-height: 480px;" }} +{{ $height := safeCSS "min-height: calc(320px - 5rem); max-height: calc(320px - 5rem);" }} {{ if and (resources.GetMatch $banner) (ne .Params.banner false) }} {{ $height = safeCSS (printf "height: calc(%spx - 5rem);" (string $img.Height)) }} {{ else if and (.Resources.Match "banner*") (ne .Params.banner false) }} - {{ $img = (.Resources.GetMatch "banner*").Fill "1280x480 smart" }} + {{ $img = (.Resources.GetMatch "banner*").Fill "1280x320 smart" }} {{ $height = safeCSS (printf "height: calc(%spx - 5rem);" (string $img.Height)) }} {{ else if and (.Resources.ByType "image") (ne .Params.banner false) }} - {{ $img = (index (.Resources.ByType "image") 0).Fill "1280x480 smart" }} + {{ $img = (index (.Resources.ByType "image") 0).Fill "1280x320 smart" }} {{ $height = safeCSS (printf "height: calc(%spx - 5rem);" (string $img.Height)) }} {{ else }}