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

28 lines
1.9 KiB
HTML
Raw Normal View History

2022-03-27 14:42:21 +02:00
<div>
<details>
2022-04-03 01:02:41 +02:00
<summary style="list-style: none; text-align: right;">Menü ☰</summary>
2022-03-27 14:42:21 +02:00
<p>
2022-04-03 01:02:41 +02:00
<div class="footer_color" style="margin-top: 0; text-align: right;"><b>Termine</b></div>
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-04-03 21:08:42 +02:00
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.eventcategories }}
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-04-03 01:02:41 +02:00
{{ if .IsHome }}
<div class="footer_color" style="margin-top: 1rem; text-align: right;"><b>Languages</b></div>
{{ range $.Site.Home.AllTranslations }}
{{ if ne .Lang $.Lang }}
<li style="list-style: none; text-align: right;"><a href="{{- .Permalink -}}" class="underline">{{- .Lang -}}</a></li>
{{ end }}
{{ end }}
2022-04-03 02:33:46 +02:00
{{ end }}
2022-03-27 14:42:21 +02:00
</p>
</details>
</div>