2019-08-25 20:25:56 +02:00
|
|
|
{{ define "title" }}{{ T "all" | humanize}}{{ T .Data.Plural | default .Data.Plural | humanize }} | {{ .Site.Title }}{{ end }}
|
2019-08-04 15:53:35 +02:00
|
|
|
|
|
|
|
{{ define "content" }}
|
2019-08-22 20:01:22 +02:00
|
|
|
{{ $taxonomies := .Data.Plural }}
|
2019-08-04 15:53:35 +02:00
|
|
|
{{ $terms := .Data.Terms.ByCount }}
|
|
|
|
{{ $type := .Type }}
|
|
|
|
|
2019-08-18 19:36:52 +02:00
|
|
|
<div class="post-warp archive">
|
2019-08-24 13:32:41 +02:00
|
|
|
<h2 class="post-title animated pulse faster">
|
2019-08-25 20:25:56 +02:00
|
|
|
{{ T "all" | humanize}}{{ T $taxonomies | default $taxonomies | humanize }}
|
2019-08-04 15:53:35 +02:00
|
|
|
</h2>
|
|
|
|
|
|
|
|
<!-- Categories Page -->
|
2019-08-22 20:01:22 +02:00
|
|
|
{{ if eq $taxonomies "categories" }}
|
2019-08-04 15:53:35 +02:00
|
|
|
<div class="categories-card">
|
|
|
|
{{ range $terms }}
|
|
|
|
{{ $term := .Term }}
|
|
|
|
{{ $pages := .Pages }}
|
|
|
|
{{ with $.Site.GetPage "taxonomy" (printf "%s/%s" $type $term) }}
|
|
|
|
<div class="card-item">
|
|
|
|
<div class="categories">
|
|
|
|
<a href="{{ .Permalink }}">
|
2019-08-26 19:15:00 +02:00
|
|
|
<h3><i class="far fa-folder fa-fw"></i>{{ $term | humanize}}</h3>
|
2019-08-04 15:53:35 +02:00
|
|
|
</a>
|
|
|
|
{{ range first 5 $pages }}
|
|
|
|
<article class="archive-item">
|
|
|
|
<a href="{{ .Permalink }}" class="archive-item-link">{{ .Title }}</a>
|
|
|
|
</article>
|
|
|
|
{{ end }}
|
|
|
|
{{ if gt (len $pages) 5 }}
|
|
|
|
<span class="more-post">
|
2020-01-30 06:17:42 +01:00
|
|
|
<a href="{{ .Permalink }}" class="more-post-link">{{ T "more" }} >></a>
|
2019-08-04 15:53:35 +02:00
|
|
|
</span>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Tag Cloud Page -->
|
2019-08-22 20:01:22 +02:00
|
|
|
{{ else if eq $taxonomies "tags" }}
|
2019-08-04 15:53:35 +02:00
|
|
|
<div class="tag-cloud-tags">
|
|
|
|
{{ range $.Site.Taxonomies.tags.ByCount }}
|
2019-08-19 17:00:26 +02:00
|
|
|
<a href="{{ .Page.Permalink }}"> {{ .Page.Title }} <small>({{ .Count }})</small></a>
|
2019-08-04 15:53:35 +02:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{end }}
|