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,16 @@
{% extends "base.html" %}
{% block content %}
{% for article in articles_page.object_list %}
<h2><a href="{{ article.url }}">{{ article.title }}</a></h2>
<p class="metadata">
{{ article.locale_date }}
{% if article.modified %}
— updated {{ article.locale_modified }}
{% endif %}
</p>
<div class="summary">
{{ article.summary }}
</div>
{% endfor %}
{% endblock %}