forked from Bunteshaus/bunteshaus.de
24 lines
1.3 KiB
HTML
24 lines
1.3 KiB
HTML
|
{{ if gt .Site.Taxonomies.categories 0 }}
|
||
|
<li class="align_menu"><a href="{{ "/news" | relLangURL}}"><h3>{{ T "news" }}</h3></a></li>
|
||
|
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.categories }}
|
||
|
{{ $orig := $taxonomyname }}
|
||
|
{{ if ne (i18n $taxonomyname) "" }}
|
||
|
{{ $taxonomyname = i18n $taxonomyname }}
|
||
|
{{ else }}
|
||
|
{{ $taxonomyname = $taxonomyname | humanize }}
|
||
|
{{ end }}
|
||
|
<li class="align_menu"><a href="{{ "categories/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></li>
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
{{ if gt .Site.Taxonomies.events 0 }}
|
||
|
<li class="align_menu"><a href="{{ "/events" | relLangURL}}"><h3>{{ T "events" }}</h3></a></li>
|
||
|
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.events }}
|
||
|
{{ $orig := $taxonomyname }}
|
||
|
{{ if ne (i18n $taxonomyname) "" }}
|
||
|
{{ $taxonomyname = i18n $taxonomyname }}
|
||
|
{{ else }}
|
||
|
{{ $taxonomyname = $taxonomyname | humanize }}
|
||
|
{{ end }}
|
||
|
<li class="align_menu"><a href="{{ "events/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></li>
|
||
|
{{ end }}
|
||
|
{{ end }}
|