2020-01-31 15:53:04 +01:00
|
|
|
{{- define "title" -}}
|
2020-05-18 10:10:24 +02:00
|
|
|
{{- .Params.Title | default (T .Data.Plural) | default .Data.Plural | dict "Some" | T "allSome" }} - {{ .Site.Title -}}
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- end -}}
|
2019-08-04 15:53:35 +02:00
|
|
|
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- define "content" -}}
|
|
|
|
{{- $taxonomies := .Data.Plural -}}
|
|
|
|
{{- $terms := .Data.Terms.ByCount -}}
|
|
|
|
{{- $type := .Type -}}
|
2019-08-04 15:53:35 +02:00
|
|
|
|
2020-02-01 12:47:58 +01:00
|
|
|
<div class="page archive">
|
2020-02-03 11:38:10 +01:00
|
|
|
{{- /* Title */ -}}
|
2022-05-06 20:22:58 +02:00
|
|
|
<h2 class="single-title animate__animated animate__pulse animate__faster">
|
2020-05-18 10:10:24 +02:00
|
|
|
{{- .Params.Title | default (T $taxonomies) | default $taxonomies | dict "Some" | T "allSome" -}}
|
2019-08-04 15:53:35 +02:00
|
|
|
</h2>
|
|
|
|
|
2020-02-03 11:38:10 +01:00
|
|
|
{{- /* Categories Page */ -}}
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- if eq $taxonomies "categories" -}}
|
2019-08-04 15:53:35 +02:00
|
|
|
<div class="categories-card">
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- range $terms -}}
|
|
|
|
{{- $term := .Term -}}
|
|
|
|
{{- $pages := .Pages -}}
|
2020-05-18 10:10:24 +02:00
|
|
|
{{- with $.Site.GetPage "taxonomy" (printf "%v/%v" $type $term) -}}
|
2019-08-04 15:53:35 +02:00
|
|
|
<div class="card-item">
|
2020-01-31 18:52:27 +01:00
|
|
|
<div class="card-item-wrapper">
|
|
|
|
<h3 class="card-item-title">
|
2020-03-09 13:25:55 +01:00
|
|
|
<a href="{{ .RelPermalink }}">
|
2022-05-06 19:54:31 +02:00
|
|
|
<i class="far fa-folder fa-fw" aria-hidden="true"></i> {{ .Page.Title }}
|
2020-01-31 18:52:27 +01:00
|
|
|
</a>
|
|
|
|
</h3>
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- range first 5 $pages -}}
|
2019-08-04 15:53:35 +02:00
|
|
|
<article class="archive-item">
|
2020-03-09 13:25:55 +01:00
|
|
|
<a href="{{ .RelPermalink }}" class="archive-item-link">
|
2022-03-22 14:03:45 +01:00
|
|
|
{{- .Title | emojify -}}
|
2020-01-31 15:53:04 +01:00
|
|
|
</a>
|
2019-08-04 15:53:35 +02:00
|
|
|
</article>
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- end -}}
|
|
|
|
{{- if gt (len $pages) 5 -}}
|
2019-08-04 15:53:35 +02:00
|
|
|
<span class="more-post">
|
2020-03-09 13:25:55 +01:00
|
|
|
<a href="{{ .RelPermalink }}" class="more-single-link">{{ T "more" }} >></a>
|
2019-08-04 15:53:35 +02:00
|
|
|
</span>
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- end -}}
|
2019-08-04 15:53:35 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
2019-08-04 15:53:35 +02:00
|
|
|
</div>
|
|
|
|
|
2020-02-03 11:38:10 +01:00
|
|
|
{{- /* Tag Cloud Page */ -}}
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- else if eq $taxonomies "tags" -}}
|
2019-08-04 15:53:35 +02:00
|
|
|
<div class="tag-cloud-tags">
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- range $.Site.Taxonomies.tags.ByCount -}}
|
2020-04-22 19:22:29 +02:00
|
|
|
<a href="{{ .Page.RelPermalink }}">{{ .Page.Title }} <sup>{{ .Count }}</sup></a>
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- end -}}
|
2019-08-04 15:53:35 +02:00
|
|
|
</div>
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- end -}}
|
2019-08-04 15:53:35 +02:00
|
|
|
</div>
|
2020-02-06 17:10:00 +01:00
|
|
|
{{- end -}}
|