small fixes

This commit is contained in:
teldra 2022-06-22 18:51:51 +02:00
parent 5524eb3ec5
commit a8b3bc80c8
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{{ 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>
{{ range .Data.Pages }}
{{ . }}
{{ end }}
</div>
{{ end }}