From 6ce0bb9a8f9fd7d169cbb414a9537d68c5290aae Mon Sep 17 00:00:00 2001 From: Prefetch Date: Fri, 14 Oct 2022 23:25:28 +0200 Subject: Initial commit after migration from Hugo --- source/_layouts/category.html | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 source/_layouts/category.html (limited to 'source/_layouts/category.html') diff --git a/source/_layouts/category.html b/source/_layouts/category.html new file mode 100644 index 0000000..8393bd6 --- /dev/null +++ b/source/_layouts/category.html @@ -0,0 +1,34 @@ +--- +layout: "default" +--- + +

{{ page.title }}

+ +{% assign 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 %} -- cgit v1.2.3