Add new card-list shortcode

This commit is contained in:
Sam 2024-08-07 14:59:38 +01:00
parent 01c75a7ac7
commit 4ed12e10e6
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<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>