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 ------------------------ _includes/posts/feed.html | 23 +++++++++++++++++++++++ _includes/posts/posts.html | 23 ----------------------- 4 files changed, 47 insertions(+), 47 deletions(-) create mode 100644 _includes/categories/all.html delete mode 100644 _includes/categories/categories.html create mode 100644 _includes/posts/feed.html delete mode 100644 _includes/posts/posts.html (limited to '_includes') 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 %} diff --git a/_includes/posts/feed.html b/_includes/posts/feed.html new file mode 100644 index 0000000..c123ceb --- /dev/null +++ b/_includes/posts/feed.html @@ -0,0 +1,23 @@ +{% if site.posts.size == 0 %} +

Sorry, no posts have been added yet.

+
+{% else %} + {% for post in paginator.posts %} +
+

{{ post.title }}

+ +
+ {{ post.excerpt | markdownify }} +
+ {% endfor %} +
+ {% include posts/paginator.html %} +
+{% endif %} diff --git a/_includes/posts/posts.html b/_includes/posts/posts.html deleted file mode 100644 index c123ceb..0000000 --- a/_includes/posts/posts.html +++ /dev/null @@ -1,23 +0,0 @@ -{% if site.posts.size == 0 %} -

Sorry, no posts have been added yet.

-
-{% else %} - {% for post in paginator.posts %} -
-

{{ post.title }}

- -
- {{ post.excerpt | markdownify }} -
- {% endfor %} -
- {% include posts/paginator.html %} -
-{% endif %} -- cgit v1.2.3