From eaf1cb76b71e7656367014d0c9bd1534695dc9a4 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 30 Dec 2018 11:39:59 +0100 Subject: fixed category pages --- themes/new_theme/layouts/_default/list.html | 2 +- themes/new_theme/layouts/partials/sidebar.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/new_theme/layouts/_default/list.html b/themes/new_theme/layouts/_default/list.html index 2bc036c..bca3132 100644 --- a/themes/new_theme/layouts/_default/list.html +++ b/themes/new_theme/layouts/_default/list.html @@ -2,7 +2,7 @@ {{ $section := .Section }} -{{ if and ( ne $section "blog" ) ( ne $section "" ) }} +{{ if and ( ne $section "blog" ) ( ne $section "" ) ( ne $section "categories" ) }}
diff --git a/themes/new_theme/layouts/partials/sidebar.html b/themes/new_theme/layouts/partials/sidebar.html index 1147dd2..4fc8150 100644 --- a/themes/new_theme/layouts/partials/sidebar.html +++ b/themes/new_theme/layouts/partials/sidebar.html @@ -2,7 +2,7 @@ {{ partial "widgets/dataprotection.html" . }} {{ partial "widgets/elasticlunr_search.html" . }} {{ $section := .Section }} - {{ if or ( eq $section "blog" ) ( eq $section "" ) }} + {{ if or ( eq $section "blog" ) ( eq $section "" ) ( eq $section "categories" ) }} {{ partial "widgets/recent.html" . }} {{ partial "widgets/categories.html" . }} {{ partial "widgets/taglist.html" . }} -- cgit v1.2.3-54-g00ecf