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,15 +1,16 @@
|
|||
{{- with .Params.campaign }}
|
||||
{{- $section := $.Site.GetPage "section" "aktionen" -}}
|
||||
{{- $page := $section.GetPage . -}}
|
||||
{{- with $page -}}
|
||||
<section id="banner">
|
||||
<div class="container">
|
||||
<div id="banner-container" class="padding">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p>{{ .Params.description }}</p>
|
||||
<p><a href="{{ .Permalink }}" class="btn btn-primary">{{ i18n "more-info" }}</a></p>
|
||||
</div>
|
||||
{{- $section := $.Site.GetPage "section" "aktionen" -}}
|
||||
{{ $page := "" }}
|
||||
{{- with $section.Pages }}
|
||||
{{- $page = index . 0 -}}
|
||||
{{ end }}
|
||||
{{- with $page -}}
|
||||
<section id="banner">
|
||||
<div class="container">
|
||||
<div id="banner-container" class="padding">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p>{{ .Params.description }}</p>
|
||||
<p><a href="{{ .Permalink }}" class="btn btn-primary">{{ i18n "more-info" }}</a></p>
|
||||
</div>
|
||||
</section>
|
||||
{{- end }}
|
||||
</div>
|
||||
</section>
|
||||
{{- end }}
|
||||
Loading…
Reference in New Issue