diff --git a/themes/buha/assets/css/layout.css b/themes/buha/assets/css/layout.css index 31c64d51..8d802168 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 36351957..59ad4c6f 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 3262697c..6e0daf1c 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 d1acbe7e..2ca1c4f7 100644 --- a/themes/buha/layouts/partials/sidebar.html +++ b/themes/buha/layouts/partials/sidebar.html @@ -22,7 +22,7 @@ - {{ if .IsSection }} +