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 }}