small fixes

This commit is contained in:
teldra 2022-06-22 18:50:53 +02:00
parent 5a7d9da98b
commit 5524eb3ec5

View File

@ -0,0 +1,13 @@
{{ define "banner" }}
{{ $image := "" }}
{{ if .Resources.GetMatch "banner*" }}
{{ $image = .Resources.GetMatch "banner*" }}
{{ end }}
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
{{ end }}
{{ define "content" }}
<div>
{{ .Content }}
</div>
{{ end }}