Added category layout

* see #11

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
Jim Martens 2017-12-25 12:40:21 +01:00
parent 7a87f5be1c
commit b9544c2469
1 changed files with 15 additions and 0 deletions

15
_layouts/category.html Normal file
View File

@ -0,0 +1,15 @@
---
layout: default
---
{{ content }}
<ul class="post-list list-unstyled">
{% for post in site.categories[page.category] %}
<li class="mb-4">
<span class="small text-muted">{{ post.date | date: "%b %-d, %Y" }}</span>
<p class="h4 post-title">
<a class="post-link" href="{{ post.url | absolute_url }}">{{ post.title }}</a>
</p>
</li>
{% endfor %}
</ul>