Make banner section dynamic

This commit is contained in:
Patrick Neff 2019-02-26 00:08:58 +01:00
parent 379bc2ccf1
commit a8b2cc7f6a
2 changed files with 14 additions and 14 deletions

View File

@ -3,7 +3,6 @@ date = "2018-12-02T19:16:57+01:00"
draft = false
title = "Neff Stein-Design"
campaign = "angebote-fruehjahr-2019"
galleries = ["gemeinschaftsgrab", "grabmal", "bauen-und-wohnen"]
[menu]

View File

@ -1,6 +1,8 @@
{{- with .Params.campaign }}
{{- $section := $.Site.GetPage "section" "aktionen" -}}
{{- $page := $section.GetPage . -}}
{{ $page := "" }}
{{- with $section.Pages }}
{{- $page = index . 0 -}}
{{ end }}
{{- with $page -}}
<section id="banner">
<div class="container">
@ -12,4 +14,3 @@
</div>
</section>
{{- end }}
{{- end }}