From b3d3d85ac90285cded09801c4cbb18ccbb39eb3d Mon Sep 17 00:00:00 2001 From: teldra Date: Sun, 27 Mar 2022 00:43:25 +0100 Subject: [PATCH] small fixes --- themes/buha/assets/css/layout.css | 3 ++- themes/buha/layouts/_default/baseof.html | 3 +++ themes/buha/layouts/_default/list.html | 14 ++++++++++++++ themes/buha/layouts/partials/sidebar.html | 4 ++-- 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/themes/buha/assets/css/layout.css b/themes/buha/assets/css/layout.css index 31c64d5..8d80216 100644 --- a/themes/buha/assets/css/layout.css +++ b/themes/buha/assets/css/layout.css @@ -14,7 +14,7 @@ } main h1 { - margin-top: 1rem; + margin-top: 0rem; margin-bottom: 0rem; } @@ -150,6 +150,7 @@ article h2 { text-align: right; flex-direction: column; min-width: 15%; + min-height: 100vh; } footer { diff --git a/themes/buha/layouts/_default/baseof.html b/themes/buha/layouts/_default/baseof.html index 3635195..59ad4c6 100644 --- a/themes/buha/layouts/_default/baseof.html +++ b/themes/buha/layouts/_default/baseof.html @@ -6,6 +6,9 @@
{{ partialCached "header" . }}
+
+ {{ block "nav2" . -}}{{- end }} +

diff --git a/themes/buha/layouts/_default/list.html b/themes/buha/layouts/_default/list.html index 3262697..6e0daf1 100644 --- a/themes/buha/layouts/_default/list.html +++ b/themes/buha/layouts/_default/list.html @@ -163,6 +163,20 @@

{{- end -}} +{{ define "nav2" }} + {{ $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 }} + {{ $taxonomyname | humanize }} + {{ end }} + {{ end }} +{{ end }} + {{ define "sidebar" }} {{- partial "sidebar" . }} {{ end }} \ No newline at end of file diff --git a/themes/buha/layouts/partials/sidebar.html b/themes/buha/layouts/partials/sidebar.html index d1acbe7..2ca1c4f 100644 --- a/themes/buha/layouts/partials/sidebar.html +++ b/themes/buha/layouts/partials/sidebar.html @@ -22,7 +22,7 @@ - {{ if .IsSection }} +