From 231b76246f4bdab4cd763f16701f5535ddd7a6b7 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 4 Dec 2022 15:25:46 +0100 Subject: [PATCH] skip_html_head should only include the actual content, with no HTML boilerplate --- madblog/templates/article.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/madblog/templates/article.html b/madblog/templates/article.html index cc62722..ed1e694 100644 --- a/madblog/templates/article.html +++ b/madblog/templates/article.html @@ -4,8 +4,6 @@ {% endwith %}
-{% endif %} -
{% if not skip_header %} {% if title %} @@ -46,13 +44,16 @@ {% endif %}
+{% endif %} + {{ content | safe }} + +{% if not skip_html_head %}
{% include 'footer.html' %} -{% if not skip_html_head %}
{% include 'common-tail.html' %} {% endif %}