Add a “news” category

This commit is contained in:
Philipp Oppermann
2018-03-09 23:14:07 +01:00
parent a02a6b0b92
commit 7d2b5b6c07
3 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
{% extends "base.html" %}
{% import "macros.html" as macros %}
{% block title %}{{ section.title }} | {{ config.title }}{% endblock title %}
{% block main %}
<h1>{{ section.title }}</h1>
{% block introduction %}{% endblock introduction %}
<div class="posts neutral">
{% for page in section.pages|reverse %}
<article>
<h2 class="post-title"><a href="/{{ page.path | safe }}">{{ page.title }}</a></h2>
<time datetime="{{ page.date | date(format="%Y-%m-%d") }}" class="post-date">
{{ page.date | date(format="%b %d, %Y") }}
</time>
<div class="post-summary">
{{ page.summary | safe}}
<a class="read-more" href="/{{ page.path | safe }}">read more…</a>
</div>
</article>
{% endfor %}
</div>
{% endblock main %}