mirror of
https://github.com/caressofsteel/hugo-story.git
synced 2025-09-05 19:42:56 +02:00
adding template support for spotlights
This commit is contained in:
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