small fixes

This commit is contained in:
teldra 2022-03-27 15:01:04 +02:00
parent 783f40f87f
commit 1ffc4f2694
3 changed files with 12 additions and 8 deletions

View File

@ -4,7 +4,7 @@
</a>
<div id="menu">
{{- range site.Params.mainSections -}}
{{ if ne . "news" }}
{{ if eq . "about" }}
{{ $name := . | T }}
{{ if eq $name "" }}
{{ $name = . }}

View File

@ -1,11 +1,11 @@
{{ $s := .Site.Params }}
<section class="sidebar_inner">
<!-- <h3 class="mt-4 taxonomy" id="categories-section">{{ T "categories" }}</h3> -->
{{- $featured := where .Site.RegularPages "Params.featured" true }}
<a href="/events"><h3 class="mt-4 taxonomy" id="categories-section">{{ T "events" }}</h3></a>
<!-- {{- $featured := where .Site.RegularPages "Params.featured" true }}
{{ if $featured }}
<li style="list-style: none;"><a href="{{ "/" | relLangURL}}{{ "featured" | urlize }}">{{ "featured" | T | humanize }}</a></li>
{{ end }}
{{ end }} -->
{{- $recurrent := where .Site.RegularPages "Params.recurrent" true }}
{{ if $recurrent }}
<li style="list-style: none;"><a href="{{ "/" | relLangURL}}{{ "recurrent" | urlize }}">{{ "recurrent" | T | humanize }}</a></li>

View File

@ -1,10 +1,14 @@
{{ if or (eq .Section "events") }}
<div>
<details>
<summary style="list-style: none; text-align: right;"></summary>
<summary style="list-style: none; text-align: right;">Termine </summary>
<p>
{{ partial "sidebar.html" . }}
{{- $recurrent := where .Site.RegularPages "Params.recurrent" true }}
{{ if $recurrent }}
<li style="list-style: none; text-align: right;"><a href="{{ "/" | relLangURL}}{{ "recurrent" | urlize }}">{{ "recurrent" | T | humanize }}</a></li>
{{ end }}
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.categories }}
<li style="list-style: none; text-align: right;"><a href="{{ "categories/" | relLangURL}}{{ $taxonomyname | urlize }}">{{ $taxonomyname | humanize }}</a></li>
{{ end }}
</p>
</details>
</div>
{{ end }}