From 8132f5172d286ef73f5d0f2cfbd95da713870484 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 30 Dec 2020 09:55:37 +0100 Subject: Fixed finding subpages in some cases, use multiple sorted arrays for categories --- templates/base.html | 6 ++---- templates/categoriesByCount.html | 7 +++++++ templates/categoriesById.html | 7 +++++++ templates/categoryRef.html | 7 ------- 4 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 templates/categoriesByCount.html create mode 100644 templates/categoriesById.html delete mode 100644 templates/categoryRef.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index 4b8ea1e..48d7c72 100644 --- a/templates/base.html +++ b/templates/base.html @@ -52,10 +52,8 @@ ${pageHeader()} $body$ $if(section.is_blog)$ - $if(pages.not_empty)$ - ${categoryRef()} - ${pagelistByYear()} - $endif$ + ${categoriesById()} + ${pagelistByYear()} $endif$ diff --git a/templates/categoriesByCount.html b/templates/categoriesByCount.html new file mode 100644 index 0000000..871e3db --- /dev/null +++ b/templates/categoriesByCount.html @@ -0,0 +1,7 @@ +$if(categories.by_count)$ + +$endif$ diff --git a/templates/categoriesById.html b/templates/categoriesById.html new file mode 100644 index 0000000..1f4f433 --- /dev/null +++ b/templates/categoriesById.html @@ -0,0 +1,7 @@ +$if(categories.by_id)$ + +$endif$ diff --git a/templates/categoryRef.html b/templates/categoryRef.html deleted file mode 100644 index 58dc5fe..0000000 --- a/templates/categoryRef.html +++ /dev/null @@ -1,7 +0,0 @@ -$if(categories)$ - -$endif$ -- cgit v1.2.3-54-g00ecf