2020-08-22 13:20:08 +02:00
|
|
|
<article>
|
2020-10-31 23:24:58 +01:00
|
|
|
<a href="{{ .RelPermalink }}">
|
2020-09-24 23:59:00 +02:00
|
|
|
<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>
|
2026-03-05 13:43:55 +01:00
|
|
|
|
|
|
|
|
{{- $description := .Params.description -}}
|
|
|
|
|
{{- $IsTerm := in .Kind "term" -}}
|
|
|
|
|
{{- if $IsTerm -}}
|
|
|
|
|
{{- $description = $description | default (T "list.page" (len .Pages)) -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
{{- if or $description (not .Date.IsZero) -}}
|
2026-03-05 17:10:35 +01:00
|
|
|
<footer class="article-meta">
|
2026-03-05 13:43:55 +01:00
|
|
|
{{- if not .Date.IsZero -}}
|
|
|
|
|
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
|
|
|
|
|
{{- .Date | time.Format .Site.Params.dateFormat.published -}}
|
|
|
|
|
</time>
|
|
|
|
|
{{- else if $description -}}
|
|
|
|
|
<span class="article-description">{{- $description -}}</span>
|
|
|
|
|
{{ end }}
|
|
|
|
|
</footer>
|
|
|
|
|
{{- end -}}
|
2020-09-10 18:53:36 +02:00
|
|
|
</div>
|
2020-09-24 23:59:00 +02:00
|
|
|
|
2026-03-05 17:58:40 +01:00
|
|
|
{{- $image := partial "helper/image" (dict "Image" .Params.image "Resources" .Resources "Context" .) -}}
|
2026-01-25 23:29:41 +01:00
|
|
|
{{ if $image }}
|
|
|
|
|
<div class="article-image">
|
2026-03-04 23:32:33 +01:00
|
|
|
{{ partial "helper/thumbnail-image" (dict
|
|
|
|
|
"Resource" $image.Resource
|
|
|
|
|
"Width" 60
|
|
|
|
|
"Height" 60
|
|
|
|
|
"Resize" .Site.Params.ImageProcessing.Thumbnail.Enabled
|
|
|
|
|
"Attributes" (dict
|
|
|
|
|
"src" $image.Permalink
|
|
|
|
|
"alt" .Title
|
|
|
|
|
"loading" "lazy"
|
|
|
|
|
"width" $image.Width
|
|
|
|
|
"height" $image.Height
|
|
|
|
|
)
|
|
|
|
|
) }}
|
2026-01-25 23:29:41 +01:00
|
|
|
</div>
|
2020-09-24 23:59:00 +02:00
|
|
|
{{ end }}
|
|
|
|
|
</a>
|
2020-08-22 13:20:08 +02:00
|
|
|
</article>
|