diff options
author | Prefetch | 2022-10-14 23:25:28 +0200 |
---|---|---|
committer | Prefetch | 2022-10-14 23:25:28 +0200 |
commit | 6ce0bb9a8f9fd7d169cbb414a9537d68c5290aae (patch) | |
tree | a0abb6b22f77c0e84ed38277d14662412ce14f39 /source/_layouts/category.html |
Initial commit after migration from Hugo
Diffstat (limited to 'source/_layouts/category.html')
-rw-r--r-- | source/_layouts/category.html | 34 |
1 files changed, 34 insertions, 0 deletions
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" +--- + +<h1>{{ page.title }}</h1> + +{% 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" +%} + +<p> +This is an alphabetical list of the concepts in this category. +</p> + +<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 %} |