From 24332c533008456f4316347071d4183e2ef1d982 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 22 Mar 2022 13:04:43 +0300 Subject: rename some includes --- _includes/categories/all.html | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 _includes/categories/all.html (limited to '_includes/categories/all.html') diff --git a/_includes/categories/all.html b/_includes/categories/all.html new file mode 100644 index 0000000..a988a3f --- /dev/null +++ b/_includes/categories/all.html @@ -0,0 +1,24 @@ +{% if site.posts.size == 0 %} +

Sorry, no posts have been added yet.

+
+{% else %} + {% for category in site.categories %} +

{{ category[0] }}

+
+ + {% endfor %} + {% assign uncategorized = site.posts | where_exp: "post","post.categories.size == 0" %} + {% if uncategorized.size != 0 %} +

Other

+
+ + {% endif %} +{% endif %} -- cgit v1.2.3