forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
5524eb3ec5
commit
a8b3bc80c8
|
@ -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 }}
|
Loading…
Reference in New Issue