forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
783f40f87f
commit
1ffc4f2694
|
@ -4,7 +4,7 @@
|
|||
</a>
|
||||
<div id="menu">
|
||||
{{- range site.Params.mainSections -}}
|
||||
{{ if ne . "news" }}
|
||||
{{ if eq . "about" }}
|
||||
{{ $name := . | T }}
|
||||
{{ if eq $name "" }}
|
||||
{{ $name = . }}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 }}
|
Loading…
Reference in New Issue
Block a user