Files
blog_os/blog/templates/news-section.html
Philipp Oppermann 53e0749906 Fix post ordering
`reverse` is no longer needed with `weight`
2019-01-22 16:59:00 +01:00

29 lines
858 B
HTML

{% extends "second-edition/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 %}
<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 %}