2020-08-22 13:20:08 +02:00
|
|
|
<article>
|
2020-09-24 23:59:00 +02:00
|
|
|
<a href="{{ .Permalink }}">
|
|
|
|
<div class="article-details">
|
|
|
|
<h2 class="article-title">
|
2020-08-22 13:20:08 +02:00
|
|
|
{{- .Title -}}
|
2020-09-24 23:59:00 +02:00
|
|
|
</h2>
|
|
|
|
<footer class="article-time">
|
|
|
|
<time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
|
|
|
|
{{- .Date.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}}
|
|
|
|
</time>
|
|
|
|
</footer>
|
2020-09-10 18:53:36 +02:00
|
|
|
</div>
|
2020-09-24 23:59:00 +02:00
|
|
|
|
|
|
|
{{- $image := partialCached "helper/image" (dict "Context" . "Type" "articleList") .RelPermalink "articleList" -}}
|
|
|
|
{{ if $image.exists }}
|
|
|
|
<div class="article-image">
|
|
|
|
{{ if $image.resource }}
|
|
|
|
{{- $thumbnail := $image.resource.Fill "120x120" -}}
|
|
|
|
<img src="{{ $thumbnail.RelPermalink }}" width="{{ $thumbnail.Width }}"
|
|
|
|
height="{{ $thumbnail.Height }}" loading="lazy">
|
|
|
|
{{ else }}
|
|
|
|
<img src="{{ $image.permalink }}" loading="lazy" alt="Featured image of post {{ .Title }}" />
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</a>
|
2020-08-22 13:20:08 +02:00
|
|
|
</article>
|