Transform hard-coded theme into Jinja template

This commit is contained in:
2020-05-10 01:36:58 +00:00
parent 5190e4b812
commit ba35bf5466
6 changed files with 135 additions and 46 deletions

View File

@@ -0,0 +1,20 @@
{% extends "base.html" %}
{% block content %}
<header>
<h1>{{ article.title }}</h1>
<p class="metadata">
{{ article.locale_date }}
{% if article.modified %}
— updated {{ article.locale_modified }}
{% endif %}
</p>
<div class="summary">
{{ article.summary }}
</div>
</header>
<hr />
<article>
{{ article.content }}
</article>
{% endblock %}