forked from neff/neff-steindesign.de
Make banner section dynamic
This commit is contained in:
parent
379bc2ccf1
commit
a8b2cc7f6a
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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 }}
|
||||
Loading…
Reference in New Issue