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 ++++++++++++++++++++++++ _includes/categories/categories.html | 24 ------------------------ 2 files changed, 24 insertions(+), 24 deletions(-) create mode 100644 _includes/categories/all.html delete mode 100644 _includes/categories/categories.html (limited to '_includes/categories') 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 %} diff --git a/_includes/categories/categories.html b/_includes/categories/categories.html deleted file mode 100644 index a988a3f..0000000 --- a/_includes/categories/categories.html +++ /dev/null @@ -1,24 +0,0 @@ -{% 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