small fixes
This commit is contained in:
parent
a8c779f778
commit
1d2ba0b7d5
|
@ -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" }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user