forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
ed197255c7
commit
783f40f87f
|
@ -31,7 +31,7 @@ aside {
|
|||
}
|
||||
|
||||
h1 {
|
||||
margin-top: -1.2em;
|
||||
margin-top: 0rem;
|
||||
}
|
||||
|
||||
.right-sidebar {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
10
themes/buha/layouts/partials/submenu.html
Normal file
10
themes/buha/layouts/partials/submenu.html
Normal 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 }}
|
Loading…
Reference in New Issue
Block a user