From 664c30fb2b2265ef309c623efd5714fcd127676a Mon Sep 17 00:00:00 2001 From: "Jens M. Sauer" Date: Tue, 23 Jul 2024 21:28:18 +0200 Subject: [PATCH] Add headless bundle and layout for spotlights --- content/spotlights/_index.md | 8 ++++++++ layouts/partials/spotlight-headless.html | 20 ++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 content/spotlights/_index.md create mode 100644 layouts/partials/spotlight-headless.html diff --git a/content/spotlights/_index.md b/content/spotlights/_index.md new file mode 100644 index 0000000..c2d459d --- /dev/null +++ b/content/spotlights/_index.md @@ -0,0 +1,8 @@ +--- +cascade: +- build: + list: local + publishResources: false + render: never +title: spotlight section +--- diff --git a/layouts/partials/spotlight-headless.html b/layouts/partials/spotlight-headless.html new file mode 100644 index 0000000..47bb007 --- /dev/null +++ b/layouts/partials/spotlight-headless.html @@ -0,0 +1,20 @@ +{{ with .Site.GetPage "/spotlights" }} + {{ range .Pages }} +
+
+

{{ .Title }}

+

{{ .Content }}

+ {{ with .Params.button }} + + {{ end }} +
+ {{ range .Resources.ByType "image" }} +
+ +
+ {{ end }} +
+ {{ end }} +{{ end }}