summaryrefslogtreecommitdiff
path: root/source/know/category/index.md
diff options
context:
space:
mode:
authorPrefetch2022-10-14 23:25:28 +0200
committerPrefetch2022-10-14 23:25:28 +0200
commit6ce0bb9a8f9fd7d169cbb414a9537d68c5290aae (patch)
treea0abb6b22f77c0e84ed38277d14662412ce14f39 /source/know/category/index.md
Initial commit after migration from Hugo
Diffstat (limited to 'source/know/category/index.md')
-rw-r--r--source/know/category/index.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/source/know/category/index.md b/source/know/category/index.md
new file mode 100644
index 0000000..9952eba
--- /dev/null
+++ b/source/know/category/index.md
@@ -0,0 +1,33 @@
+---
+title: "List of categories"
+date: 2021-02-22
+layout: "default"
+---
+
+# List of categories
+
+{% assign 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;">
+&hyphen;
+{% for letter in by_letter %}
+<a href="#{{ letter.name }}">{{ letter.name }}</a>
+&hyphen;
+{% 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 %}