Add article template

main
Georg Krause 2019-05-16 14:01:04 +02:00
parent 7af3c0c616
commit 89df2acac0
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{% extends "base.html" %}
{% block content %}
<div class="page-wrapper">
<div class="content">
<div class="pure-g">
<div class="l-box-lrg pure-u-md-1-5"></div>
<div class="l-box-lrg pure-u-1 pure-u-md-3-5">
<article>
<header>
<h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
</header>
<footer>
Published on
<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
<address>By
{% for author in article.authors %}
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
{% endfor %}
</address>
</footer>
<section>
{{ article.content }}
</section>
</article>
</div>
</div>
</div>
</div>
{% endblock %}