blob: d1c6285b2718f3e89ddbbce9b6d35ab42a07b548 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{% if site.posts.size == 0 %}
<p>Sorry, no posts have been added yet.</p>
{% else %}
{% assign categories = site.categories | sort %}
{% for category in categories %}
{% assign category_name = category[0] %}
<h2>{% include jekyll-theme/categories/label.html category=category_name %}</h2>
{% for post in category[1] %}
<a href="{{ post.url | relative_url }}" class="feed-entry">
{% include jekyll-theme/posts/header.html feed=true title=post.title date=post.date %}
</a>
{% endfor %}
{% endfor %}
{% assign uncategorized = site.posts | where_exp: "post","post.categories.size == 0" %}
{% if uncategorized.size != 0 %}
<h2>{% include jekyll-theme/categories/label.html category="Other" feed=true %}</h2>
{% for post in uncategorized %}
<a href="{{ post.url | relative_url }}" class="feed-entry">
{% include jekyll-theme/posts/header.html feed=true title=post.title date=post.date %}
</a>
{% endfor %}
{% endif %}
{% endif %}
|