bunteshaus.de/themes/buha/layouts/partials/sidebar.html
2022-04-03 01:02:41 +02:00

25 lines
993 B
HTML

{{ $s := .Site.Params }}
<section class="sidebar_inner">
<h3>{{ T "events" }}</h3>
<a href="{{ "/events" | relLangURL}}">{{ "all" | T }}</a>
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.categories }}
{{ $orig := $taxonomyname }}
{{ if ne (i18n $taxonomyname) "" }}
{{ $taxonomyname = i18n $taxonomyname }}
{{ else }}
{{ $taxonomyname = $taxonomyname | humanize }}
{{ end }}
<li style="list-style: none;"><a href="{{ "categories/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></li>
{{ end }}
{{ if .IsHome }}
<h4>{{ "Languages" }}</h3>
{{ range .Translations }}
{{ if ne .Lang $.Lang }}
<li style="list-style: none;"><a href="{{- .Permalink -}}" class="underline">{{- .Lang -}}</a></li>
{{ end }}
{{ end }}
{{ end }}
</section>