mirror of
https://github.com/caressofsteel/hugo-story.git
synced 2025-09-06 03:52:57 +02:00
adding template support for spotlights
This commit is contained in:
@ -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" . }}
|
||||
|
13
layouts/partials/spotlight.html
Normal file
13
layouts/partials/spotlight.html
Normal 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>
|
Reference in New Issue
Block a user