diff --git a/themes/buha/layouts/partials/snippets/banner.html b/themes/buha/layouts/partials/snippets/banner.html index 95f5bd2..eeb7432 100644 --- a/themes/buha/layouts/partials/snippets/banner.html +++ b/themes/buha/layouts/partials/snippets/banner.html @@ -38,18 +38,19 @@ {{ with .File }} {{ $slug = anchorize .ContentBaseName }} {{ end }} -{{ if and ($img) (ne .Params.banner false) }} +{{ if or (and $img (ne .Params.banner false)) (.Resources.ByType "image") }}1 {{ if .Resources.Match "banner*" }} {{ $img = .Resources.GetMatch "banner*" }} {{ end }} {{ if .Resources.ByType "image" }} {{ $img = index (.Resources.ByType "image") 0 }} {{ end }} + {{ if $img }}