2022-07-14 23:12:56 +02:00
< article class = "post-card post
{{ if not (.context.Param "thumbnail") }} no-image
{{ else }}
2023-11-08 16:27:39 +01:00
{{ if (eq (mod .index 6) 0) }} post-card-large {{ end }}{{ .isLarge }}
2022-07-14 23:12:56 +02:00
{{ end }} ">
{{ if .context.Param "thumbnail" }}
2022-09-13 13:26:33 +02:00
< a class = "post-card-image-link" href = "{{ .context.RelPermalink }}" >
2023-08-14 01:40:15 +02:00
< img class = "post-card-image" src = "{{ .context.Param " thumbnail " } } " alt = "{{ .context.Title }}" loading = "lazy" / >
2022-07-14 23:12:56 +02:00
< / a >
2023-07-22 18:09:35 +02:00
{{ else }}
< a class = "post-card-image-link" href = "{{ .context.RelPermalink }}" >
2023-08-14 01:40:15 +02:00
< img class = "post-card-image" src = "/images/nothumb.svg" alt = "{{ .context.Title }}" loading = "lazy" / >
2023-07-22 18:09:35 +02:00
< / a >
2022-07-14 23:12:56 +02:00
{{ end }}
< div class = "post-card-content" >
2022-09-13 13:26:33 +02:00
< a class = "post-card-content-link" href = "{{ .context.RelPermalink }}" >
2022-07-14 23:12:56 +02:00
< header class = "post-card-header" >
< h2 class = "post-card-title" > {{ .context.Title }}< / h2 >
< / header >
< section class = "post-card-excerpt" >
< p > {{ .context.Description }}< / p >
< / section >
< / a >
< footer class = "post-card-meta" >
2023-11-04 23:52:43 +01:00
{{ if ne .context.Section "tags" }}
2023-11-08 16:27:39 +01:00
< span class = "post-card-byline-date" > {{ if ne .isMoreCard "yes" }}< a href = "{{ .context.CurrentSection.Permalink }}" > {{ .context.Section }}< / a > < span class = "bull" > • < / span > {{ end }}< time datetime = "{{ .context.Date.Format " 2006-31-01 " } } " > {{ .context.Date.Format "2 January 2006" }}< / time >
2023-08-17 02:42:49 +02:00
{{ if ne .context.Lastmod .context.Date }}
< span class = "bull" > • < / span > < span class = "post-card-byline-date" > < time datetime = "{{ .context.Lastmod.Format " 2006-31-01 " } } " > < svg class = "byline-meta-symbol" xmlns = "http://www.w3.org/2000/svg" height = "16" viewBox = "0 -1000 960 960" width = "16" fill = "currentColor" > < path d = "M180-180h44l443-443-44-44-443 443v44Zm614-486L666-794l42-42q17-17 42-17t42 17l44 44q17 17 17 42t-17 42l-42 42Zm-42 42L248-120H120v-128l504-504 128 128Zm-107-21-22-22 44 44-22-22Z" / > < / svg > {{ .context.Lastmod.Format "2 January 2006" }}< / time >
2023-11-04 23:52:43 +01:00
{{ end }}
{{ else }}
< span class = "post-card-byline-date" > < time datetime = "{{ .context.Lastmod.Format " 2006-31-01 " } } " > Last post from {{ .context.Lastmod.Format "2 January 2006" }}< / time >
2023-08-17 02:42:49 +02:00
{{ end }}
2023-09-22 23:39:06 +02:00
{{ if ne .context.ReadingTime 0 }}< span class = "bull" > • < / span > {{ .context.ReadingTime }} min read < span class = "bull" > • < / span > {{ range (.context.GetTerms "tags") }}
< a href = "{{ .RelPermalink }}" > {{ .LinkTitle }}< / a > {{ end }}
2023-02-04 19:30:17 +01:00
{{ end }}< / span >
2022-07-14 23:12:56 +02:00
< / footer >
< / div >
< / article >