Rework items as headless bundle

Items are now headless bundles.
This commit is contained in:
Jens M. Sauer 2024-07-23 23:36:08 +02:00
parent ed46e97213
commit 1e15f6dc22
11 changed files with 66 additions and 24 deletions

View File

@ -28,6 +28,7 @@ disableKinds = ["taxonomy", "section"]
description = "Ein kleines bisschen italienisches Flair für Oldenburg"
logo = "images/banner.jpg"
favicon = true
iconstyle = "style2"
[Params.social]
email = "philipp@bar-filipo.de"

7
content/items/empfang.md Normal file
View File

@ -0,0 +1,7 @@
---
title: Events
params:
icon: fa-gem
weight: 1
---
Hochzeit, Geburtstag, Firmenfeier, Jubiläen, spezielle Events, Taufe, Kommunion/ Konfirmation, Glühwein-Abend

7
content/items/free.md Normal file
View File

@ -0,0 +1,7 @@
---
title: Alkoholfreie Alternativen
params:
icon: fa-martini-glass-empty
weight: 3
---
Alle Getränke auch mit einer alkoholfreien Alternative verfügbar

11
content/items/index.md Normal file
View File

@ -0,0 +1,11 @@
---
cascade:
- build:
list: local
publishResources: false
render: never
title: Unser Angebot
params:
style: style1 medium onscroll-fade-in
id: angebot
---

7
content/items/planung.md Normal file
View File

@ -0,0 +1,7 @@
---
title: Eventplanung
params:
icon: fa-lightbulb
weight: 10
---
Organisation Ihrer Feier rundum sorglos Paket Umsetzung ihrer Wünsche

View File

@ -0,0 +1,8 @@
---
title: Produkte
params:
icon: fa-martini-glass-citrus
weight: 2
---
Seccoempfang, Aperol-Spritz, Crodino-Spritz, Glühwein, Highballs, Gin,
Vodka, Weinbegleitung

8
content/items/snacks.md Normal file
View File

@ -0,0 +1,8 @@
---
title: Snacks
params:
icon: fa-drumstick-bite
weight: 4
---
Snacks und Fingerfood in Zusammenarbeit mit unterschiedlichen
Restaurants und Caterings

View File

@ -1,20 +0,0 @@
title : "Unser Angebot"
id: "fifth"
content: |
Wir bieten verschiedene Leistungen für Ihre Veranstaltung an.
style: "style1 medium onscroll-fade-in"
items:
# feature item loop
- name : "Empfang"
content : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi dui turpis, cursus eget orci amet aliquam congue semper. Etiam eget ultrices risus nec tempor elit."
style : "style2 major fa-gem"
# feature item loop
- name : "Highballs"
content : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi dui turpis, cursus eget orci amet aliquam congue semper. Etiam eget ultrices risus nec tempor elit."
style : "solid style2 major fa-save"
# feature item loop
- name : "Snacks"
content : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi dui turpis, cursus eget orci amet aliquam congue semper. Etiam eget ultrices risus nec tempor elit."
style : "solid style2 major fa-chart-bar"

View File

@ -2,7 +2,7 @@
{{ partial "banner-headless" . }}
{{ partial "spotlight-headless" . }}
{{ partial "items" site.Data.items }}
{{ partial "items-headless" . }}
{{ partial "footer" . }}
{{ end }}

View File

@ -1,5 +1,5 @@
<section>
<span class="icon {{ .style }}"></span>
<h3>{{ .name }}</h3>
<p>{{ .content }}</p>
<span class="icon {{ .Site.Params.iconstyle }} major solid {{ .Params.icon }}"></span>
<h3>{{ .Title }}</h3>
<p>{{ .Content }}</p>
</section>

View File

@ -0,0 +1,13 @@
{{ with .Site.GetPage "/items" }}
<section class="wrapper style1 align-center" id="{{ .Params.id }}">
<div class="inner">
<h2>{{ .Title }}</h2>
<p>{{ .Content }}</p>
<div class="items {{ .Params.style }}">
{{ range .Resources.ByType "page" }}
{{ partial "item" . }}
{{ end }}
</div>
</div>
</section>
{{ end }}