summaryrefslogtreecommitdiffstats
path: root/templates/page.html
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-06-06 17:26:51 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-06-06 17:26:51 +0200
commit1383fee0f3ee632110259218a20fbf5446814fd2 (patch)
tree3482a1618cbbe74f4a068591b4a9722b5ed1d956 /templates/page.html
parent6ba2af3d6b477e775dfbeaf8ed0f03d9d7648e32 (diff)
downloadrabalderz-1383fee0f3ee632110259218a20fbf5446814fd2.tar.gz
rabalderz-1383fee0f3ee632110259218a20fbf5446814fd2.tar.bz2
rabalderz-1383fee0f3ee632110259218a20fbf5446814fd2.zip
Refactor post headers to separate template.
Diffstat (limited to 'templates/page.html')
-rw-r--r--templates/page.html18
1 files changed, 5 insertions, 13 deletions
diff --git a/templates/page.html b/templates/page.html
index 5cdf946..49f3cd5 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -1,18 +1,10 @@
{% extends "base.html" %}
{% block content %}
+{% set post = page -%}
<article class="post">
- <h1>{{ page.title }}</h1>
- <div class="meta">
- <span class="meta-publish">
- Publisert: {{ page.date }}
- {% if page.author %}av {{ page.author }}{% endif %}
- </span>
- {% if page.taxonomies %}
- <span class="meta-tags">
- Merket: {{ page.taxonomies['tags'] | join(sep=", ") }}
- </span>
- {% endif %}
- </div>
- {{ page.content | safe }}
+ {% include "posts/header.html" %}
+ <section class="post-body">
+ {{ post.content | safe }}
+ </section>
</article>
{% endblock content %}