Add new card-list shortcode
This commit is contained in:
parent
01c75a7ac7
commit
4ed12e10e6
|
@ -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>
|
Loading…
Reference in New Issue