bunteshaus.de/themes/buha/layouts/partials/submenu.html

22 lines
1.5 KiB
HTML
Raw Normal View History

2022-03-27 14:42:21 +02:00
<div>
<details>
2022-03-27 15:01:04 +02:00
<summary style="list-style: none; text-align: right;">Termine ☰</summary>
2022-03-27 14:42:21 +02:00
<p>
2022-03-27 15:22:14 +02:00
<li style="list-style: none; text-align: right;"><a href="{{ "/events" | relLangURL}}">{{ "all" | T }}</a></li>
2022-03-27 16:00:42 +02:00
<!-- {{- $recurrent := where .Site.RegularPages "Params.recurrent" true }}
2022-03-27 15:01:04 +02:00
{{ if $recurrent }}
<li style="list-style: none; text-align: right;"><a href="{{ "/" | relLangURL}}{{ "recurrent" | urlize }}">{{ "recurrent" | T | humanize }}</a></li>
2022-03-27 16:00:42 +02:00
{{ end }} -->
2022-03-27 15:01:04 +02:00
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.categories }}
2022-03-27 16:00:42 +02:00
{{ $orig := $taxonomyname }}
{{ if ne (i18n $taxonomyname) "" }}
{{ $taxonomyname = i18n $taxonomyname }}
{{ else }}
{{ $taxonomyname = $taxonomyname | humanize }}
{{ end }}
<li style="list-style: none; text-align: right;"><a href="{{ "categories/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></li>
2022-03-27 15:01:04 +02:00
{{ end }}
2022-03-27 14:42:21 +02:00
</p>
</details>
</div>