2020-08-29 05:34:26 -04:00
|
|
|
{{ $i := .Params.image }}
|
|
|
|
{{ $context := . }}
|
|
|
|
|
|
|
|
<div class="article-details">
|
|
|
|
{{ with $categories := .Params.categories }}
|
|
|
|
<header class="article-category">
|
|
|
|
{{ range $categories }}
|
|
|
|
{{ if $i }}
|
|
|
|
{{- $image := partial "helper/image" $context | resources.Fingerprint "md5" -}}
|
|
|
|
{{- $20x := $image.Fill "20x20 smart" -}}
|
|
|
|
<a href="/categories/{{ . | urlize }}" class="color-tag"
|
2020-08-29 05:43:00 -04:00
|
|
|
data-image="{{ $20x.RelPermalink }}" data-key="{{ $context.Slug }}" data-hash="{{ $image.Data.Integrity }}">{{ . | humanize }}</a>
|
2020-08-29 05:34:26 -04:00
|
|
|
{{ else }}
|
|
|
|
<a href="/categories/{{ . | urlize }}">{{ . | humanize }}</a>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</header>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<h2 class="article-title">
|
|
|
|
<a href="{{ .Permalink }}">
|
|
|
|
{{- .Title -}}
|
|
|
|
</a>
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
{{ with .Params.description }}
|
|
|
|
<h3 class="article-subtitle">
|
|
|
|
{{ . }}
|
|
|
|
</h3>
|
|
|
|
{{ end }}
|
|
|
|
|
2020-09-06 14:10:25 -04:00
|
|
|
{{- if not .Date.IsZero -}}
|
2020-08-29 05:34:26 -04:00
|
|
|
<footer class="article-time">
|
|
|
|
{{ (resources.Get "icons/clock.svg").Content | safeHTML }}
|
2020-09-06 14:10:25 -04:00
|
|
|
<time class="article-time--published">
|
2020-09-09 11:35:22 -04:00
|
|
|
{{- .Date.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}}
|
2020-08-29 05:34:26 -04:00
|
|
|
</time>
|
|
|
|
</footer>
|
2020-09-06 14:10:25 -04:00
|
|
|
{{- end -}}
|
2020-08-29 05:34:26 -04:00
|
|
|
</div>
|