aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/categories
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-23 16:52:53 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-23 16:56:55 +0300
commitc8bbc25228a7d199ca6868db7375f1661c3ef6e4 (patch)
treeb6b3c84795e441c05cc2d2a7fbbbfc34a492b377 /_includes/categories
parentindex.html: reuse page.title (diff)
downloadjekyll-theme-c8bbc25228a7d199ca6868db7375f1661c3ef6e4.tar.gz
jekyll-theme-c8bbc25228a7d199ca6868db7375f1661c3ef6e4.zip
_includes: move everything to jekyll-theme/
Diffstat (limited to '_includes/categories')
-rw-r--r--_includes/categories/all.html21
-rw-r--r--_includes/categories/category.html11
2 files changed, 0 insertions, 32 deletions
diff --git a/_includes/categories/all.html b/_includes/categories/all.html
deleted file mode 100644
index 71b4bb6..0000000
--- a/_includes/categories/all.html
+++ /dev/null
@@ -1,21 +0,0 @@
-{% if site.posts.size == 0 %}
- <p>Sorry, no posts have been added yet.</p>
-{% else %}
- {% for category in site.categories %}
- <h2><a class="category" href="{{ '/' | relative_url }}{{ category[0] | slugify: 'pretty' }}/">{{ category[0] }}</a></h2>
- <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 %}
- <h2>Other</h2>
- <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 %}
diff --git a/_includes/categories/category.html b/_includes/categories/category.html
deleted file mode 100644
index f7b7a8c..0000000
--- a/_includes/categories/category.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<p>This is a list of posts in category "{{ include.category }}".</p>
-{% if site.categories[include.category].size > 0 %}
- <ul>
- {% for post in site.categories[include.category] %}
- <li><a href="{{ post.url | relative_url }}">{{ post.date | date: "%Y-%m-%d" }} &mdash; {{ post.title }}</a></li>
- {% endfor %}
- </ul>
-{% endif %}
-{% if include.archive_link %}
- <p>For a complete list of posts grouped by category, please see <a href="{{ include.archive_link | relative_url }}">this page</a>.</p>
-{% endif %}