From e5b9bce79b68a68ddd2e51daa16d2fea73b84fdb Mon Sep 17 00:00:00 2001 From: Prefetch Date: Wed, 19 Oct 2022 20:03:25 +0200 Subject: Polish presentation, "fix" Unicode sorting --- source/_layouts/category.html | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) (limited to 'source/_layouts/category.html') diff --git a/source/_layouts/category.html b/source/_layouts/category.html index 8393bd6..872c06c 100644 --- a/source/_layouts/category.html +++ b/source/_layouts/category.html @@ -2,33 +2,16 @@ layout: "default" --- -

{{ page.title }}

+

{{ page.title | smartify }}

-{% assign by_letter = site.pages +

+This is an alphabetical list of the concepts in this category. +

+ +{% assign pages_by_letter = site.pages | where_exp: "item", "item.layout == 'concept'" | where_exp: "item", "item.categories contains page.title" | group_by_exp: "item", "item.title | truncate: 1, ''" | sort: "name" %} - -

-This is an alphabetical list of the concepts in this category. -

- -
-‐ -{% for letter in by_letter %} -{{ letter.name }} -‐ -{% endfor %} -
- -{% for letter in by_letter %} -

{{ letter.name }}

- -{% endfor %} +{% include alphlist.html pages_by_letter = pages_by_letter %} -- cgit v1.2.3