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

17 lines
531 B
HTML
Raw Normal View History

2024-08-07 14:59:38 +01:00
<div class="list-content-container">
<div class="article-card-flex-container">
{{ $items := .Inner | unmarshal }} {{ range $k, $v := $items }}
<a class="article-card" href="{{ $v.link }}">
<div class="article-card-info">
<img class="article-card-thumbnail" src="{{ $v.pic }}" />
<div class="article-card-summary">
<h3><strong>{{ $k | safeHTML }}</strong></h3>
<p>{{ $v.content | safeHTML }}</p>
<br />
</div>
</div>
</a>
{{ end }}
</div>
</div>