aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/categories/categories.html
diff options
context:
space:
mode:
Diffstat (limited to '_includes/categories/categories.html')
-rw-r--r--_includes/categories/categories.html18
1 files changed, 14 insertions, 4 deletions
diff --git a/_includes/categories/categories.html b/_includes/categories/categories.html
index 960423a..a988a3f 100644
--- a/_includes/categories/categories.html
+++ b/_includes/categories/categories.html
@@ -1,4 +1,7 @@
-{% if site.categories.size != 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/>
@@ -8,7 +11,14 @@
{% endfor %}
</ul>
{% endfor %}
-{% else %}
- <p>Sorry, no posts have been added yet.</p>
- <hr/>
+ {% 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 %}