diff options
author | Prefetch | 2022-10-19 20:03:25 +0200 |
---|---|---|
committer | Prefetch | 2022-10-19 22:01:14 +0200 |
commit | e5b9bce79b68a68ddd2e51daa16d2fea73b84fdb (patch) | |
tree | f304894ace9d5da35f08127c4597485511b8a160 /source/know/category | |
parent | 6ce0bb9a8f9fd7d169cbb414a9537d68c5290aae (diff) |
Polish presentation, "fix" Unicode sorting
Diffstat (limited to 'source/know/category')
-rw-r--r-- | source/know/category/index.md | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/source/know/category/index.md b/source/know/category/index.md index 9952eba..2772a9f 100644 --- a/source/know/category/index.md +++ b/source/know/category/index.md @@ -6,28 +6,11 @@ layout: "default" # List of categories -{% assign by_letter = site.pages +This is an alphabetical list of the categories in this knowledge base. + +{% assign pages_by_letter = site.pages | where_exp: "item", "item.layout == 'category'" | group_by_exp: "item", "item.title | truncate: 1, ''" | sort: "name" %} - -This is an alphabetical list of the categories in this knowledge base. - -<div style="text-align: center;"> -‐ -{% for letter in by_letter %} -<a href="#{{ letter.name }}">{{ letter.name }}</a> -‐ -{% endfor %} -</div> - -{% for letter in by_letter %} -<h2 id="{{ letter.name }}">{{ letter.name }}</h2> -<ul> - {% assign items = letter.items | sort: "title" %} - {% for item in items %} - <li><a href="{{ item.url }}">{{ item.title }}</a></li> - {% endfor %} -</ul> -{% endfor %} +{% include alphlist.html pages_by_letter = pages_by_letter %} |