From 1383fee0f3ee632110259218a20fbf5446814fd2 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 6 Jun 2020 17:26:51 +0200 Subject: Refactor post headers to separate template. --- templates/page.html | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'templates/page.html') 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 -%}
-

{{ page.title }}

-
- - Publisert: {{ page.date }} - {% if page.author %}av {{ page.author }}{% endif %} - - {% if page.taxonomies %} - - Merket: {{ page.taxonomies['tags'] | join(sep=", ") }} - - {% endif %} -
- {{ page.content | safe }} + {% include "posts/header.html" %} +
+ {{ post.content | safe }} +
{% endblock content %} -- cgit v1.2.3