2024-03-26 16:28:28 +01:00
|
|
|
<!-- categories -->
|
2024-03-27 12:24:18 +01:00
|
|
|
{{ if isset site.Taxonomies "categories" }} {{ if not (eq (len
|
|
|
|
site.Taxonomies.categories) 0) }}
|
|
|
|
<div class="mb-8">
|
|
|
|
<h5 class="mb-6">{{ i18n "categories" }}</h5>
|
|
|
|
<div class="bg-theme-light dark:bg-darkmode-theme-light rounded p-8">
|
|
|
|
<ul class="space-y-4">
|
|
|
|
{{ range $name, $items := site.Taxonomies.categories }}
|
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
class="hover:text-primary dark:hover:text-darkmode-primary {{ if (and (eq $.Page.Kind `term`) (eq $.Page.Type `categories`) (eq $.Page.Title .Page.Title)) }}
|
2024-03-26 16:28:28 +01:00
|
|
|
active
|
|
|
|
{{ end }} flex justify-between"
|
2024-03-27 12:24:18 +01:00
|
|
|
href="{{ .Page.RelPermalink }}"
|
|
|
|
>
|
|
|
|
{{ .Page.Title }} <span>( {{ len $items }} )</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }} {{ end }}
|