forked from Bunteshaus/bunteshaus.de
28 lines
1.5 KiB
HTML
28 lines
1.5 KiB
HTML
{{ if gt .Site.Taxonomies.categories 0 }}
|
|
<h3 class="align_menu"><a href="{{ "/news" | relLangURL}}">{{ if i18n "news" }}{{ i18n "news" }}{{ else }}{{ "News" }}{{ end }}</a></h3>
|
|
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.categories }}
|
|
{{ $orig := $taxonomyname }}
|
|
{{ if ne (i18n $taxonomyname) "" }}
|
|
{{ $taxonomyname = i18n $taxonomyname }}
|
|
{{ else }}
|
|
{{ $taxonomyname = $taxonomyname | humanize }}
|
|
{{ end }}
|
|
<div class="align_menu"><a href="{{ "categories/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></li>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ if gt .Site.Taxonomies.events 0 }}
|
|
<h3 class="align_menu"><a href="{{ "/events" | relLangURL}}">{{ if i18n "events" }}{{ i18n "events" }}{{ else }}{{ "Events" }}{{ end }}</a></h3>
|
|
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.events }}
|
|
{{ $orig := $taxonomyname }}
|
|
{{ if ne (i18n $taxonomyname) "" }}
|
|
{{ $taxonomyname = i18n $taxonomyname }}
|
|
{{ else }}
|
|
{{ $taxonomyname = $taxonomyname | humanize }}
|
|
{{ end }}
|
|
<div class="align_menu"><a href="{{ "events/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></li>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ if .IsHome }}
|
|
{{ partial "structure/langs" . }}
|
|
{{ end }}
|