2023-07-29 13:16:25 +02:00
|
|
|
<ul class="list-inline text-center filter-controls mb-4">
|
|
|
|
{{ $categories := slice }}
|
2024-09-16 21:34:24 +02:00
|
|
|
{{ if ne (len .Data.Pages) 0 }}
|
|
|
|
{{ range .Data.Pages }}
|
|
|
|
{{ $categories = $categories | append .Params.category }}
|
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
|
|
|
{{ range .Params.tiles }}
|
|
|
|
{{ with .category }}
|
|
|
|
{{ $categories = $categories | append . }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if ne (len $categories) 0 }}
|
|
|
|
<li class="list-inline-item m-3 text-uppercase active" data-filter="all">Alle</li>
|
2023-07-29 13:16:25 +02:00
|
|
|
{{ end }}
|
|
|
|
{{ range ( $categories | uniq ) }}
|
|
|
|
<li class="list-inline-item m-3 text-uppercase" data-filter="{{ . | urlize }}">{{ . | humanize }}</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|