forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
5957c51503
commit
fd3cc76793
|
@ -5,9 +5,14 @@
|
|||
<div class="container">
|
||||
<header>
|
||||
{{ partialCached "header" . }}
|
||||
<div>
|
||||
{{ block "nav2" . -}}{{- end }}
|
||||
</div>
|
||||
<div>
|
||||
<details>
|
||||
<summary style="list-style: none; text-align: right;">☰</summary>
|
||||
<p>
|
||||
{{ partial "sidebar.html" . }}
|
||||
</p>
|
||||
</details>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content">
|
||||
<main>
|
||||
|
|
|
@ -163,27 +163,6 @@
|
|||
</div>
|
||||
{{- end -}}
|
||||
|
||||
{{ define "nav2" }}
|
||||
|
||||
<details>
|
||||
<summary style="list-style: none; text-align: right;">☰</summary>
|
||||
<p>
|
||||
{{ $true := false }}
|
||||
{{ range $taxonomyname, $taxonomy := where .Site.Taxonomies.categories ".Page.Section" .Section }}
|
||||
{{ if ne $taxonomyname nil }}
|
||||
{{ $true = true }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if $true }}
|
||||
{{ range $taxonomyname, $taxonomy := where .Site.Taxonomies.categories ".Page.Section" .Section }}
|
||||
<a href="{{ "categories/" | relLangURL}}{{ $taxonomyname | urlize }}" style="margin-right: 1rem">{{ $taxonomyname | humanize }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ partial "sidebar.html" . }}
|
||||
</p>
|
||||
</details>
|
||||
{{ end }}
|
||||
|
||||
{{ define "sidebar" }}
|
||||
{{- partial "sidebar" . }}
|
||||
{{ end }}
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
</div>
|
||||
|
||||
<!-- {{ if .IsSection }}
|
||||
{{ if .IsSection }}
|
||||
{{ $true := false }}
|
||||
{{ range $taxonomyname, $taxonomy := where .Site.Taxonomies.categories ".Page.Section" .Section }}
|
||||
{{ if ne $taxonomyname nil }}
|
||||
|
@ -32,7 +32,7 @@
|
|||
<li style="list-style: none;"><a href="{{ "categories/" | relLangURL}}{{ $taxonomyname | urlize }}">{{ $taxonomyname | humanize }}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }} -->
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user