baseddata.io/layouts/shortcodes/content-list.html

16 lines
535 B
HTML

<section class="content-list-container">
{{ $items := .Inner | unmarshal }} {{ range $k, $v := $items }}
<a class="content-list-item" href="{{ $v.link }}">
<div class="content-list-info">
<img class="content-list-thumbnail" src="{{ $v.pic }}" />
<div class="content-list-summary">
<div class="content-list-title"><p>{{ $k | safeHTML }}</p></div>
<div class="content-list-description">
<p>{{ $v.content | safeHTML }}</p>
</div>
</div>
</div>
</a>
{{ end }}
</section>