2020-08-22 07:20:08 -04:00
|
|
|
{{ define "body_class" }}2-column{{ end }}
|
|
|
|
{{ define "main" }}
|
|
|
|
<div class="container extended flex on-phone--column">
|
|
|
|
{{ partial "sidebar/left.html" . }}
|
|
|
|
|
|
|
|
<main class="main">
|
|
|
|
|
|
|
|
<h3 class="taxonomy-type">{{ .Type | singularize | humanize }}</h3>
|
|
|
|
<div class="taxonomy-card">
|
|
|
|
<div class="taxonomy-details">
|
|
|
|
<h3 class="taxonomy-count">{{ len .Pages }} post{{ if gt (len .Pages) 1 }}s{{ end }}</h3>
|
|
|
|
<h1 class="taxonomy-term">{{ .Title }}</h1>
|
|
|
|
{{ with .Params.description }}
|
|
|
|
<h2 class="taxonomy-description">{{ . }}</h2>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
2020-09-11 10:27:23 -04:00
|
|
|
{{ $image := partial "helper/image" (dict "Context" .) }}
|
2020-09-10 12:58:41 -04:00
|
|
|
{{ if $image.exists }}
|
2020-08-22 07:20:08 -04:00
|
|
|
<div class="taxonomy-image">
|
2020-09-11 10:01:01 -04:00
|
|
|
{{ if $image.resource }}
|
|
|
|
{{- $thumbnail := $image.resource.Fill "120x120" -}}
|
2020-09-10 12:58:41 -04:00
|
|
|
<img src="{{ $thumbnail.RelPermalink }}" width="{{ $thumbnail.Width }}"
|
|
|
|
height="{{ $thumbnail.Height }}" loading="lazy">
|
|
|
|
{{ else }}
|
2020-09-11 10:01:01 -04:00
|
|
|
<img src="{{ $image.permalink }}" loading="lazy">
|
2020-09-10 12:58:41 -04:00
|
|
|
{{ end }}
|
2020-08-22 07:20:08 -04:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<section class="article-list--compact">
|
|
|
|
{{ $v2 := where .Pages "Params.hidden" "!=" true }}
|
|
|
|
{{ $pag := .Paginate (.Pages) }}
|
|
|
|
{{ range $pag.Pages }}
|
|
|
|
{{ partial "article-list/compact" . }}
|
|
|
|
{{ end }}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{{- partial "pagination.html" . -}}
|
|
|
|
|
|
|
|
{{ partial "footer" . }}
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|