Rename card-list to content-list shortcode
This commit is contained in:
parent
420c04f916
commit
7489fd3f90
|
@ -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>
|
|
|
@ -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>
|
Loading…
Reference in New Issue