NixNet/_layouts/category.html

29 lines
922 B
HTML
Raw Permalink 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 }}">
2019-06-06 13:28:38 +00:00
<span class="post-teaser-title">{{ post.title }}</span>
<span class="post-teaser-date">{{ post.date | date: "%d %B %Y" }}</span>
2018-12-14 05:47:01 +00:00
</a>
</li>
{% assign empty_category = false %}
{% endif %}
{% endfor %}
{% if empty_category %}
<li class="empty-post-list">
2018-12-19 01:39:26 +00:00
<p>The first article to appear here is currently being written.<p>
<p>In the meantime, please go <a href="/">home</a> to see a list of completed posts.</p>
2018-12-14 05:47:01 +00:00
</li>
{% endif %}
</ul>
2018-12-15 05:52:02 +00:00
{% include page/explore.html %}