Add headless bundle and layout for spotlights

This commit is contained in:
Jens M. Sauer 2024-07-23 21:28:18 +02:00
parent 325342cfac
commit 664c30fb2b
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,8 @@
---
cascade:
- build:
list: local
publishResources: false
render: never
title: spotlight section
---

View File

@ -0,0 +1,20 @@
{{ with .Site.GetPage "/spotlights" }}
{{ range .Pages }}
<section class="spotlight {{ .Params.style }}" id="{{ .Params.id }}">
<div class="content">
<h2>{{ .Title }}</h2>
<p>{{ .Content }}</p>
{{ with .Params.button }}
<ul class="actions stacked">
<li><a href="#{{ .link }}" class="button smooth-scroll-middle">{{ .label }}</a></li>
</ul>
{{ end }}
</div>
{{ range .Resources.ByType "image" }}
<div class="image">
<img src="{{ .RelPermalink }}" alt="" />
</div>
{{ end }}
</section>
{{ end }}
{{ end }}