small fixes

This commit is contained in:
teldra 2022-06-24 19:38:56 +02:00
parent a8c779f778
commit 1d2ba0b7d5
1 changed files with 6 additions and 1 deletions

View File

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