small fixes

This commit is contained in:
teldra 2022-03-27 03:16:23 +02:00
parent 5957c51503
commit fd3cc76793
3 changed files with 10 additions and 26 deletions

View File

@ -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>

View File

@ -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 }}

View File

@ -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 }}