small fixes

This commit is contained in:
teldra 2022-03-27 14:42:21 +02:00
parent ed197255c7
commit 783f40f87f
4 changed files with 14 additions and 20 deletions

View File

@ -31,7 +31,7 @@ aside {
}
h1 {
margin-top: -1.2em;
margin-top: 0rem;
}
.right-sidebar {

View File

@ -5,14 +5,7 @@
<div class="container">
<header>
{{ partialCached "header" . }}
<div>
<details>
<summary style="list-style: none; text-align: right;"></summary>
<p>
{{ partial "sidebar.html" . }}
</p>
</details>
</div>
{{ partial "submenu" . }}
</header>
<div class="content">
<main>

View File

@ -1,13 +1,6 @@
{{ $s := .Site.Params }}
<section class="sidebar_inner">
{{ if .IsSection }}
{{ $true := false }}
{{ range $taxonomyname, $taxonomy := where .Site.Taxonomies.categories ".Page.Section" .Section }}
{{ if ne $taxonomyname nil }}
{{ $true = true }}
{{ end }}
{{ end }}
{{ if $true }}
<!-- <h3 class="mt-4 taxonomy" id="categories-section">{{ T "categories" }}</h3> -->
{{- $featured := where .Site.RegularPages "Params.featured" true }}
{{ if $featured }}
@ -17,10 +10,8 @@
{{ if $recurrent }}
<li style="list-style: none;"><a href="{{ "/" | relLangURL}}{{ "recurrent" | urlize }}">{{ "recurrent" | T | humanize }}</a></li>
{{ end }}
{{ range $taxonomyname, $taxonomy := where .Site.Taxonomies.categories ".Page.Section" .Section }}
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.categories }}
<li style="list-style: none;"><a href="{{ "categories/" | relLangURL}}{{ $taxonomyname | urlize }}">{{ $taxonomyname | humanize }}</a></li>
{{ end }}
{{ end }}
{{ end }}
</section>

View File

@ -0,0 +1,10 @@
{{ if or (eq .Section "events") }}
<div>
<details>
<summary style="list-style: none; text-align: right;"></summary>
<p>
{{ partial "sidebar.html" . }}
</p>
</details>
</div>
{{ end }}