aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/categories/categories.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-22 13:04:43 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-22 13:04:43 +0300
commit24332c533008456f4316347071d4183e2ef1d982 (patch)
tree822c783b4a641f3e2a6034184f7552b9a9925170 /_includes/categories/categories.html
parentREADME: update (diff)
downloadjekyll-theme-24332c533008456f4316347071d4183e2ef1d982.tar.gz
jekyll-theme-24332c533008456f4316347071d4183e2ef1d982.zip
rename some includes
Diffstat (limited to '_includes/categories/categories.html')
-rw-r--r--_includes/categories/categories.html24
1 files changed, 0 insertions, 24 deletions
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 %}
- <p>Sorry, no posts have been added yet.</p>
- <hr/>
-{% else %}
- {% for category in site.categories %}
- <h1><a class="category" href="{{ '/' | relative_url }}{{ category[0] | slugify: 'pretty' }}/">{{ category[0] }}</a></h1>
- <hr/>
- <ul>
- {% for post in category[1] %}
- <li><a href="{{ post.url | relative_url }}">{{ post.date | date: "%Y-%m-%d" }} &mdash; {{ post.title }}</a></li>
- {% endfor %}
- </ul>
- {% endfor %}
- {% assign uncategorized = site.posts | where_exp: "post","post.categories.size == 0" %}
- {% if uncategorized.size != 0 %}
- <h1>Other</h1>
- <hr/>
- <ul>
- {% for post in uncategorized %}
- <li><a href="{{ post.url | relative_url }}">{{ post.date | date: "%Y-%m-%d" }} &mdash; {{ post.title }}</a></li>
- {% endfor %}
- </ul>
- {% endif %}
-{% endif %}