From 1e15f6dc22989a163e5c240b907ca495e51c4d2d Mon Sep 17 00:00:00 2001 From: "Jens M. Sauer" Date: Tue, 23 Jul 2024 23:36:08 +0200 Subject: [PATCH] Rework items as headless bundle Items are now headless bundles. --- config/_default/hugo.toml | 1 + content/items/empfang.md | 7 +++++++ content/items/free.md | 7 +++++++ content/items/index.md | 11 +++++++++++ content/items/planung.md | 7 +++++++ content/items/produkte.md | 8 ++++++++ content/items/snacks.md | 8 ++++++++ data/items.yml | 20 -------------------- layouts/index.html | 2 +- layouts/partials/item.html | 6 +++--- layouts/partials/items-headless.html | 13 +++++++++++++ 11 files changed, 66 insertions(+), 24 deletions(-) create mode 100644 content/items/empfang.md create mode 100644 content/items/free.md create mode 100644 content/items/index.md create mode 100644 content/items/planung.md create mode 100644 content/items/produkte.md create mode 100644 content/items/snacks.md delete mode 100644 data/items.yml create mode 100644 layouts/partials/items-headless.html diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index ba293ff..2af1114 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -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" diff --git a/content/items/empfang.md b/content/items/empfang.md new file mode 100644 index 0000000..a8f8e6f --- /dev/null +++ b/content/items/empfang.md @@ -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 diff --git a/content/items/free.md b/content/items/free.md new file mode 100644 index 0000000..7fd5b9f --- /dev/null +++ b/content/items/free.md @@ -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 diff --git a/content/items/index.md b/content/items/index.md new file mode 100644 index 0000000..f386a37 --- /dev/null +++ b/content/items/index.md @@ -0,0 +1,11 @@ +--- +cascade: +- build: + list: local + publishResources: false + render: never +title: Unser Angebot +params: + style: style1 medium onscroll-fade-in + id: angebot +--- diff --git a/content/items/planung.md b/content/items/planung.md new file mode 100644 index 0000000..f2a71e2 --- /dev/null +++ b/content/items/planung.md @@ -0,0 +1,7 @@ +--- +title: Eventplanung +params: + icon: fa-lightbulb +weight: 10 +--- +Organisation Ihrer Feier – rundum sorglos Paket Umsetzung ihrer Wünsche diff --git a/content/items/produkte.md b/content/items/produkte.md new file mode 100644 index 0000000..6f0fccc --- /dev/null +++ b/content/items/produkte.md @@ -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 diff --git a/content/items/snacks.md b/content/items/snacks.md new file mode 100644 index 0000000..f63a79a --- /dev/null +++ b/content/items/snacks.md @@ -0,0 +1,8 @@ +--- +title: Snacks +params: + icon: fa-drumstick-bite +weight: 4 +--- +Snacks und Fingerfood in Zusammenarbeit mit unterschiedlichen +Restaurants und Caterings diff --git a/data/items.yml b/data/items.yml deleted file mode 100644 index d9caa19..0000000 --- a/data/items.yml +++ /dev/null @@ -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" diff --git a/layouts/index.html b/layouts/index.html index 2732961..8b8d5a9 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,7 +2,7 @@ {{ partial "banner-headless" . }} {{ partial "spotlight-headless" . }} - {{ partial "items" site.Data.items }} + {{ partial "items-headless" . }} {{ partial "footer" . }} {{ end }} diff --git a/layouts/partials/item.html b/layouts/partials/item.html index f3c5568..fbb6eba 100644 --- a/layouts/partials/item.html +++ b/layouts/partials/item.html @@ -1,5 +1,5 @@
- -

{{ .name }}

-

{{ .content }}

+ +

{{ .Title }}

+

{{ .Content }}

diff --git a/layouts/partials/items-headless.html b/layouts/partials/items-headless.html new file mode 100644 index 0000000..3c899da --- /dev/null +++ b/layouts/partials/items-headless.html @@ -0,0 +1,13 @@ +{{ with .Site.GetPage "/items" }} +
+
+

{{ .Title }}

+

{{ .Content }}

+
+ {{ range .Resources.ByType "page" }} + {{ partial "item" . }} + {{ end }} +
+
+
+{{ end }}