2022-04-04 19:28:17 +02:00
|
|
|
{{ if gt .Site.Taxonomies.categories 0 }}
|
2022-04-08 12:04:46 +02:00
|
|
|
<li class="align_menu"><a href="{{ "/news" | relLangURL}}"><h3>{{ if i18n "news" }}{{ i18n "news" }}{{ else }}{{ "News" }}{{ end }}</h3></a></li>
|
2022-04-04 19:28:17 +02:00
|
|
|
{{ 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 }}
|
2022-04-08 12:04:46 +02:00
|
|
|
<li class="align_menu"><a href="{{ "/events" | relLangURL}}"><h3>{{ if i18n "events" }}{{ i18n "events" }}{{ else }}{{ "Events" }}{{ end }}</h3></a></li>
|
2022-04-04 19:28:17 +02:00
|
|
|
{{ 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 }}
|
2022-04-04 21:26:28 +02:00
|
|
|
{{ end }}
|
2022-04-05 20:58:02 +02:00
|
|
|
{{ if .IsHome }}
|
|
|
|
{{ partial "structure/langs" . }}
|
|
|
|
{{ end }}
|