adding template support for spotlights

This commit is contained in:
mspnr
2021-01-31 16:47:21 +01:00
parent 51e38e582c
commit 6524098340
5 changed files with 45 additions and 3 deletions

View File

@ -16,9 +16,9 @@
<!-- Main -->
{{ partial "banner" site.Data.banner }}
{{ partial "spotlight-01-left" . }}
{{ partial "spotlight-02-right" . }}
{{ partial "spotlight-03-left" . }}
{{ partial "spotlight" site.Data.spotlight1 }}
{{ partial "spotlight" site.Data.spotlight2 }}
{{ partial "spotlight" site.Data.spotlight3 }}
{{ partial "gallery" . }}
{{ partial "items" . }}
{{ partial "elements" . }}

View File

@ -0,0 +1,13 @@
<!-- Spotlight -->
<section class="spotlight {{ .style }}"{{ with .id }} id="{{ . }}"{{ end }}>
<div class="content">
{{ with .title }}<h2>{{ . }}</h2>{{ end }}
{{ with .content }}<p>{{ . | safeHTML }}</p>{{ end }}
{{ with .button }}<ul class="actions stacked">
<li><a href="{{ .link }}" class="button">{{ .label }}</a></li>
</ul>{{ end }}
</div>
{{ with .image }}<div class="image">
<img src="{{ . }}" alt="" />
</div>{{ end }}
</section>