Add headless bundle and layout for spotlights
This commit is contained in:
parent
325342cfac
commit
664c30fb2b
8
content/spotlights/_index.md
Normal file
8
content/spotlights/_index.md
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
cascade:
|
||||
- build:
|
||||
list: local
|
||||
publishResources: false
|
||||
render: never
|
||||
title: spotlight section
|
||||
---
|
||||
20
layouts/partials/spotlight-headless.html
Normal file
20
layouts/partials/spotlight-headless.html
Normal 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 }}
|
||||
Loading…
x
Reference in New Issue
Block a user