diff --git a/themes/buha/layouts/posts/single.html b/themes/buha/layouts/posts/single.html index 93f3672d..81fc27dc 100644 --- a/themes/buha/layouts/posts/single.html +++ b/themes/buha/layouts/posts/single.html @@ -4,7 +4,12 @@ {{ if .Resources.GetMatch $banner }} {{ $image = .Resources.GetMatch $banner }} {{ end }} - {{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }} + {{ $title := .Title }} + {{ if .Params.events }} + {{ $cat := index .Params.events 0 }} + {{ $title = printf "%s: %s" $cat $title }} + {{ end }} + {{ partial "snippets/banner_new" (dict "context" . "image" $image "title" $title "section" .Section) }} {{ end }} {{ define "content" }}