NixNet/_layouts/category.html

29 lines
887 B
HTML
Raw Normal View History

2018-12-14 05:47:01 +00:00
---
layout: default
---
{% include category/title.html %}
<ul class="list-posts">
{% assign empty_category = true %}
{% for post in site.posts %}
{% if post.categories contains page.category %}
<li class="post-teaser">
<a href="{{ post.url | prepend: site.baseurl }}">
<span class="post-teaser__title">{{ post.title }}</span>
<span class="post-teaser__date">{{ post.date | date: "%d %B %Y" }}</span>
</a>
</li>
{% assign empty_category = false %}
{% endif %}
{% endfor %}
{% if empty_category %}
<li class="empty-post-list">
It seems that there are no articles on that category,
2018-12-15 05:52:02 +00:00
please go <a href="/">home</a> to see the full list of articles.
2018-12-14 05:47:01 +00:00
</li>
{% endif %}
</ul>
2018-12-15 05:52:02 +00:00
{% include page/explore.html %}