Rename card-list to content-list shortcode

This commit is contained in:
Sam 2024-08-08 11:11:45 +01:00
parent 420c04f916
commit 7489fd3f90
2 changed files with 15 additions and 16 deletions

View File

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

View File

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