From 1d2ba0b7d5fa9d79655c1406a61e318f0c85077a Mon Sep 17 00:00:00 2001 From: teldra Date: Fri, 24 Jun 2022 19:38:56 +0200 Subject: [PATCH] small fixes --- themes/buha/layouts/posts/single.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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" }}