From 24148f873ce14ddf1ff0be502f6495f12184ff5a Mon Sep 17 00:00:00 2001 From: Pk11 Date: Wed, 23 Dec 2020 00:14:12 -0600 Subject: [PATCH] Fix pages not in categories --- _layouts/wiki.html | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/_layouts/wiki.html b/_layouts/wiki.html index 9c4ad78f..afe4fa11 100644 --- a/_layouts/wiki.html +++ b/_layouts/wiki.html @@ -32,24 +32,27 @@ layout: compress {% for item in items %} {% if item.url contains "index.html" %} -
  • {{ item.title }}
  • +
  • {{ item.title }}
  • {% endif %} {% endfor %} + {% assign noCat = items | where: "category", nil %} + {% for item in noCat %} + {% unless item.url contains "index.html" %} +
  • {{ item.title }}
  • + {% endunless %} + {% endfor %} {% for cat in categories %}
  • {{ cat }}
      - {% for item in items %} - {% unless item.category contains cat%} - {% continue %} - {% endunless %} - {% if item.url contains "index.html" %} - {% continue %} - {% endif %} -
    • {{ item.title }}
    • - {% endfor %} + {% for item in items %} + {% unless item.category contains cat %} + {% continue %} + {% endunless %} +
    • {{ item.title }}
    • + {% endfor %}