small fixes

This commit is contained in:
teldra 2022-04-11 22:40:02 +02:00
parent 56838439bc
commit 74718dd172

View File

@ -1,7 +1,6 @@
{{ if gt .Site.Taxonomies.categories 0 }}
<div>
<h3 class="align_menu"><a href="{{ "/news" | relLangURL}}">{{ if i18n "news" }}{{ i18n "news" }}{{ else }}{{ "News" }}{{ end }}</a></h3>
{{ if eq .Section "news" }}
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.categories }}
{{ $orig := $taxonomyname }}
{{ if ne (i18n $taxonomyname) "" }}
@ -11,13 +10,11 @@
{{ end }}
<div class="align_menu"><a href="{{ "categories/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></div>
{{ end }}
{{ end }}
</div>
{{ end }}
{{ if gt .Site.Taxonomies.events 0 }}
<div>
<h3 class="align_menu"><a href="{{ "/events" | relLangURL}}">{{ if i18n "events" }}{{ i18n "events" }}{{ else }}{{ "Events" }}{{ end }}</a></h3>
{{ if eq .Section "events" }}
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.events }}
{{ $orig := $taxonomyname }}
{{ if ne (i18n $taxonomyname) "" }}
@ -27,7 +24,6 @@
{{ end }}
<div class="align_menu"><a href="{{ "events/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></div>
{{ end }}
{{ end }}
</div>
{{ end }}
{{ if .IsHome }}