2020-08-22 07:20:08 -04:00
|
|
|
<article>
|
2020-10-31 18:24:58 -04:00
|
|
|
<a href="{{ .RelPermalink }}">
|
2020-09-24 17:59:00 -04:00
|
|
|
<div class="article-details">
|
|
|
|
<h2 class="article-title">
|
2020-08-22 07:20:08 -04:00
|
|
|
{{- .Title -}}
|
2020-09-24 17:59:00 -04: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 12:53:36 -04:00
|
|
|
</div>
|
2020-09-24 17:59:00 -04:00
|
|
|
|
|
|
|
{{- $image := partialCached "helper/image" (dict "Context" . "Type" "articleList") .RelPermalink "articleList" -}}
|
|
|
|
{{ if $image.exists }}
|
|
|
|
<div class="article-image">
|
|
|
|
{{ if $image.resource }}
|
2020-12-23 15:02:35 -05:00
|
|
|
{{- $Permalink := $image.resource.RelPermalink -}}
|
|
|
|
{{- $Width := $image.resource.Width -}}
|
|
|
|
{{- $Height := $image.resource.Height -}}
|
|
|
|
|
2022-10-29 11:14:19 -04:00
|
|
|
{{- if (default true .Page.Site.Params.imageProcessing.cover.enabled) -}}
|
2020-12-23 15:02:35 -05:00
|
|
|
{{- $thumbnail := $image.resource.Fill "120x120" -}}
|
|
|
|
{{- $Permalink = $thumbnail.RelPermalink -}}
|
|
|
|
{{- $Width = $thumbnail.Width -}}
|
|
|
|
{{- $Height = $thumbnail.Height -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
<img src="{{ $Permalink }}"
|
|
|
|
width="{{ $Width }}"
|
|
|
|
height="{{ $Height }}"
|
2021-12-04 15:05:53 -05:00
|
|
|
alt="{{ .Title }}"
|
2020-12-23 15:02:35 -05:00
|
|
|
loading="lazy">
|
2020-09-24 17:59:00 -04:00
|
|
|
{{ else }}
|
|
|
|
<img src="{{ $image.permalink }}" loading="lazy" alt="Featured image of post {{ .Title }}" />
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</a>
|
2020-08-22 07:20:08 -04:00
|
|
|
</article>
|