Transform hard-coded theme into Jinja template
This commit is contained in:
20
themes/theme/templates/article.html
Normal file
20
themes/theme/templates/article.html
Normal 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 %}
|
Reference in New Issue
Block a user