2020-08-22 07:20:08 -04:00
|
|
|
<article class="{{ if .context.Params.image }}has-image{{ end }}">
|
|
|
|
<a href="{{ .context.Permalink }}">
|
|
|
|
{{ if .context.Params.image }}
|
2020-08-28 06:11:02 -04:00
|
|
|
{{- $image := partial "helper/image" .context | resources.Fingerprint "md5" -}}
|
|
|
|
{{- $thumbnail := $image.Fill .size -}}
|
2020-08-22 07:20:08 -04:00
|
|
|
<div class="article-image">
|
|
|
|
<img src="{{ $thumbnail.RelPermalink }}" width="{{ $thumbnail.Width }}" height="{{ $thumbnail.Height }}"
|
2020-08-28 06:11:02 -04:00
|
|
|
loading="lazy" data-id="{{ .context.Slug }}" data-key="{{ $image.Data.Integrity }}">
|
2020-08-22 07:20:08 -04:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<div class="article-details">
|
|
|
|
<h2 class="article-title">
|
|
|
|
{{- .context.Title -}}
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</article>
|