This repository has been archived on 2024-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity.eu/layouts/partials/widgets/categories.html
Valentin Gagarin 72f70ec475 Add 'website/' from commit 'd208ee83f80467e25c662b4680ed2d6161d88d9e'
git-subtree-dir: website
git-subtree-mainline: 83b1c9ac3b58871df715c5993a29d658439fc772
git-subtree-split: d208ee83f80467e25c662b4680ed2d6161d88d9e
2024-10-07 11:53:11 +02:00

24 lines
748 B
HTML
Executable file

<!-- categories -->
{{ 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 rounded p-8">
<ul class="space-y-4">
{{ range $name, $items := site.Taxonomies.categories }}
<li>
<a
class="hover:text-primary {{ if (and (eq $.Page.Kind `term`) (eq $.Page.Type `categories`) (eq $.Page.Title .Page.Title)) }}
active
{{ end }} flex justify-between"
href="{{ .Page.RelPermalink }}"
>
{{ .Page.Title }} <span>( {{ len $items }} )</span>
</a>
</li>
{{ end }}
</ul>
</div>
</div>
{{ end }} {{ end }}