peruna/layouts/_default/li.html

20 lines
719 B
HTML
Raw Permalink Normal View History

2018-04-03 09:51:11 +00:00
<article class="c-article p-list-article">
<header>
<h2 class="c-title c-article__title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<p class="c-article__meta">
Posted on
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
{{ .Date.Format "Jan 2, 2006" }}
</time>
</p>
</header>
2018-09-03 15:25:51 +00:00
{{ if .Params.image }}
<a href="{{ .Permalink }}"><img src="{{ .Params.image }}" alt="thumbnail" class="c-article__thumbnail"></a>
2018-09-03 15:05:10 +00:00
{{ end }}
2018-04-03 09:51:11 +00:00
<div class="c-article__summary">
{{ .Summary | plainify | safeHTML }}
</div>
{{ if .Truncated }}
<a href="{{ .Permalink }}" class="c-article__btn p-list-article__btn">Read more</a></li>
{{ end }}
2018-09-03 15:25:51 +00:00
</article>