2023-12-12 22:40:30 +00:00
|
|
|
{{- if ( and ( .Params.redact ) ( ne $.Site.Params.redact "show" ) ) -}}
|
|
|
|
{{- if ( eq $.Site.Params.redact "black" ) -}}
|
2025-03-02 22:41:10 +01:00
|
|
|
<article class="item-tile item-tile--redacted {{- with .Params.site }}item-tile--{{ . }}{{ end -}}">
|
2023-12-12 22:40:30 +00:00
|
|
|
<header class="item-tile__header">
|
2025-03-02 22:41:10 +01:00
|
|
|
<h2
|
|
|
|
class="p-name item-tile__title{{ if gt ( len ( .Title | plainify ) ) 40 }}item-tile__title--long{{ end }}"
|
|
|
|
itemprop="name"
|
|
|
|
>
|
|
|
|
{{- partialCached "redact-black.html" . -}}
|
|
|
|
</h2>
|
|
|
|
<p style="display: none;">
|
|
|
|
Published:
|
|
|
|
<time
|
|
|
|
class="dt-published"
|
|
|
|
itemprop="datePublished"
|
|
|
|
datetime="{{ .PublishDate | time.Format "2006-01-02T15:04:05-07:00" }}"
|
|
|
|
>{{ .PublishDate | time.Format "2006-01-02T15:04:05-07:00" }}</time
|
|
|
|
>
|
|
|
|
</p>
|
2023-12-12 22:40:30 +00:00
|
|
|
</header>
|
|
|
|
</article>
|
|
|
|
{{- end -}}
|
|
|
|
{{- else -}}
|
2025-03-02 22:41:10 +01:00
|
|
|
<a
|
|
|
|
id="{{ .Title | urlize }}"
|
|
|
|
class="h-entry u-url link--tile"
|
|
|
|
href="{{ .RelPermalink }}"
|
|
|
|
itemprop="blogPost"
|
|
|
|
itemscope
|
|
|
|
itemtype="https://schema.org/BlogPosting"
|
|
|
|
>
|
|
|
|
<article
|
|
|
|
class="item-tile lazy {{- with .Params.site }}item-tile--{{ . }}{{ end -}}"
|
|
|
|
{{ if .Params.featured_image }}
|
|
|
|
{{ with .Resources.GetMatch .Params.featured_image }}
|
|
|
|
{{ if eq .MediaType.SubType "svg" }}
|
|
|
|
style="background-image: url({{ .RelPermalink }})"
|
|
|
|
{{ else }}
|
|
|
|
{{ with .Resize "1000x webp" }}
|
|
|
|
style="background-image: url({{ .RelPermalink }})"
|
2023-04-08 12:57:21 -06:00
|
|
|
{{ end }}
|
2022-11-10 22:48:02 -07:00
|
|
|
{{ end }}
|
2025-03-02 22:41:10 +01:00
|
|
|
{{ else }}
|
|
|
|
style="background-image: url({{ .Params.featured_image }})"
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
>
|
|
|
|
{{ if .Params.featured_image -}}
|
|
|
|
<img
|
|
|
|
class="u-photo"
|
|
|
|
style="display: none;"
|
|
|
|
src="
|
2023-12-12 22:40:30 +00:00
|
|
|
{{- with .Resources.GetMatch .Params.featured_image -}}
|
|
|
|
{{- if eq .MediaType.SubType "svg" -}}
|
|
|
|
{{ .RelPermalink }}
|
|
|
|
{{- else -}}
|
|
|
|
{{- with .Resize "1000x webp" -}}
|
|
|
|
{{- .RelPermalink -}}
|
|
|
|
{{- end -}}
|
2023-06-30 21:16:59 -06:00
|
|
|
{{- end -}}
|
2023-12-12 22:40:30 +00:00
|
|
|
{{- else -}}
|
|
|
|
{{ .Params.featured_image }}
|
|
|
|
{{ end }}
|
2025-03-02 22:41:10 +01:00
|
|
|
"
|
|
|
|
alt="
|
2023-12-12 22:40:30 +00:00
|
|
|
{{- with .Resources.GetMatch .Params.featured_image -}}
|
|
|
|
{{- .Params.alt -}}
|
2023-06-30 21:16:59 -06:00
|
|
|
{{- end -}}
|
2023-12-12 22:40:30 +00:00
|
|
|
"
|
2025-03-02 22:41:10 +01:00
|
|
|
/>
|
|
|
|
{{- end }}
|
|
|
|
<header class="item-tile__header">
|
|
|
|
{{ if ( or .Params.series .Params.published_in ) }}
|
|
|
|
<span
|
|
|
|
class="item-tile__banner item-tile__banner--{{ if .Params.series }}
|
|
|
|
series
|
|
|
|
{{ else if .Params.published_in }}
|
|
|
|
published-in
|
|
|
|
{{ end }}"
|
|
|
|
>
|
2023-12-12 22:40:30 +00:00
|
|
|
{{- if .Params.series -}}
|
|
|
|
{{ .Params.series | safeHTML }}
|
|
|
|
{{- else if .Params.published_in -}}
|
|
|
|
{{ .Params.published_in | safeHTML }}
|
|
|
|
{{- end -}}
|
|
|
|
</span>
|
2025-03-02 22:41:10 +01:00
|
|
|
{{ end }}
|
|
|
|
<h2
|
|
|
|
class="p-name item-tile__title {{ if gt ( len ( .Title | plainify ) ) 40 }}item-tile__title--long{{ end }}"
|
|
|
|
itemprop="name"
|
|
|
|
>
|
|
|
|
{{ default .Title .Params.markup_title | $.Page.RenderString }}
|
|
|
|
</h2>
|
|
|
|
{{ with .Params.subtitle }}
|
|
|
|
<p class="item-tile__subtitle">{{ . | $.Page.RenderString }}</p>
|
|
|
|
{{ end }}
|
|
|
|
<p style="display: none;">
|
|
|
|
Published:
|
|
|
|
<time
|
|
|
|
class="dt-published"
|
|
|
|
itemprop="datePublished"
|
|
|
|
datetime="{{ .PublishDate | time.Format "2006-01-02T15:04:05-07:00" }}"
|
|
|
|
>{{ .PublishDate | time.Format "2006-01-02T15:04:05-07:00" }}</time
|
|
|
|
>
|
|
|
|
</p>
|
2023-12-12 22:40:30 +00:00
|
|
|
</header>
|
|
|
|
</article>
|
|
|
|
</a>
|
|
|
|
{{- end -}}
|