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/blog.html | 2 +-
source/_layouts/category.html | 31 +++++++------------------------
source/_layouts/concept.html | 8 ++++----
3 files changed, 12 insertions(+), 29 deletions(-)
(limited to 'source/_layouts')
diff --git a/source/_layouts/blog.html b/source/_layouts/blog.html
index 4049297..7a41ff9 100644
--- a/source/_layouts/blog.html
+++ b/source/_layouts/blog.html
@@ -2,7 +2,7 @@
layout: "default"
---
-
{{ page.title }}
+{{ page.title | smartify }}
{{ content | toc_only }}
{{ content | inject_anchors }}
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 }}
-
- {% assign items = letter.items | sort: "title" %}
- {% for item in items %}
- - {{ item.title }}
- {% endfor %}
-
-{% endfor %}
+{% include alphlist.html pages_by_letter = pages_by_letter %}
diff --git a/source/_layouts/concept.html b/source/_layouts/concept.html
index 7a0849c..1523168 100644
--- a/source/_layouts/concept.html
+++ b/source/_layouts/concept.html
@@ -7,15 +7,15 @@ layout: "default"
Categories:
{% for category in categories %}
{% assign url = category | slugify %}
-{{ category }}{% if forloop.last == false %},{% endif %}{% endfor %}.
+{{ category | smartify }}{% if forloop.last == false %},{% endif %}{% endfor %}.
-{{ page.title }}
+{{ page.title | smartify }}
-{% capture markdown_after_katex %}
+{% capture content_after_katex %}
{% katexmm %}
{{ page.content }}
{% endkatexmm %}
{% endcapture %}
-{{ markdown_after_katex | markdownify }}
+{{ content_after_katex | markdownify }}
--
cgit v1.2.3