diff --git a/themes/buha/layouts/partials/snippets/banner.html b/themes/buha/layouts/partials/snippets/banner.html
index 85948e2f..7c80a28a 100644
--- a/themes/buha/layouts/partials/snippets/banner.html
+++ b/themes/buha/layouts/partials/snippets/banner.html
@@ -120,9 +120,9 @@
{{ if not .IsHome }}
{{ $title }}
{{ end }}
{{ if eq hugo.Environment "development" }}
{{ $str1 := printf "assets/images/banner/%s* missing.." $what }}
- {{ $str2 := printf "content//banner* missing.." }}
+ {{ $str2 := "" }}
{{ with .File }}
- {{ $str2 = printf "content/%s/banner* missing.." .Dir }}
+ {{ $str2 = printf "content/%sbanner* missing.." .Dir }}
{{ end }}
{{ if eq .Params.banner false }}