2022-03-26 19:22:14 +01:00
|
|
|
{{ $s := .Site.Params }}
|
2021-10-23 22:20:01 +02:00
|
|
|
<section class="sidebar_inner">
|
2022-04-03 21:08:42 +02:00
|
|
|
{{ if gt .Site.Taxonomies.categories 0 }}
|
2022-04-04 19:19:22 +02:00
|
|
|
<a href="{{ "/news" | relLangURL}}"><h3>{{ T "news" }}</h3></a>
|
2022-04-03 21:08:42 +02:00
|
|
|
{{ 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 }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if gt .Site.Taxonomies.events 0 }}
|
2022-04-04 19:19:22 +02:00
|
|
|
<a href="{{ "/events" | relLangURL}}"><h3>{{ T "events" }}</h3></a>
|
2022-04-03 21:08:42 +02:00
|
|
|
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.events }}
|
|
|
|
{{ $orig := $taxonomyname }}
|
|
|
|
{{ if ne (i18n $taxonomyname) "" }}
|
|
|
|
{{ $taxonomyname = i18n $taxonomyname }}
|
|
|
|
{{ else }}
|
|
|
|
{{ $taxonomyname = $taxonomyname | humanize }}
|
|
|
|
{{ end }}
|
|
|
|
<li style="list-style: none;"><a href="{{ "events/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></li>
|
|
|
|
{{ end }}
|
2022-03-27 03:17:45 +02:00
|
|
|
{{ end }}
|
2022-04-03 01:02:41 +02:00
|
|
|
{{ if .IsHome }}
|
|
|
|
<h4>{{ "Languages" }}</h3>
|
|
|
|
{{ range .Translations }}
|
|
|
|
{{ if ne .Lang $.Lang }}
|
2022-04-04 19:19:22 +02:00
|
|
|
<li style="list-style: none;"><a href="{{- .Permalink -}}">{{- i18n .Lang -}}</a></li>
|
2022-04-03 01:02:41 +02:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2022-04-03 21:08:42 +02:00
|
|
|
{{ end }}
|
|
|
|
{{ $t := where .Site.Taxonomies.categories ".Page.Section" "events" }}
|
|
|
|
{{ range $t }}
|
|
|
|
<li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a></li>
|
|
|
|
{{ end }}
|
2022-03-26 19:22:14 +01:00
|
|
|
</section>
|
|
|
|
|