From 7db86c66b4f187c4d10776428af1ce8817d3459c Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 26 Aug 2014 23:56:10 +0200 Subject: Implemented a more balanced category sort logic * random sort order of page-entries on category pages led to unsatisfing results * the entries are now sorted in an alternating fashion depending on their digest length * this produces a much more consistent and balanced output --- source/03_meta/categories.xsl | 22 ++++++------- source/99_result/category/category.xsl | 57 ++++++++++++++++++++++++---------- 2 files changed, 51 insertions(+), 28 deletions(-) diff --git a/source/03_meta/categories.xsl b/source/03_meta/categories.xsl index a0b1a41..a2945b3 100644 --- a/source/03_meta/categories.xsl +++ b/source/03_meta/categories.xsl @@ -20,12 +20,14 @@ - - <xsl:value-of select="$page/title"/> - - - - + + + <xsl:value-of select="$page/title"/> + + + + + @@ -35,11 +37,9 @@ - - - - - + + + diff --git a/source/99_result/category/category.xsl b/source/99_result/category/category.xsl index 2b54348..1713c84 100644 --- a/source/99_result/category/category.xsl +++ b/source/99_result/category/category.xsl @@ -2,7 +2,8 @@ @@ -17,33 +18,55 @@ + + + +
  • + » + + +

    + +

    +
    +
  • +
    +

    All pages categorized as » - « in random order + «

      - - + + + + + + + + + - + + + + + + + + + + + + + +
    - -
  • - » - - -

    - -

    -
    -
  • -
    -
    -- cgit v1.2.3