From 7b9a859e5e30180808794748e47e529485544b8d Mon Sep 17 00:00:00 2001 From: Pierre Equoy Date: Mon, 17 Jan 2022 16:11:06 +0800 Subject: [PATCH] Use
and
tags in simple theme Add a
tag to surround all the content blocks, so that it's easier to target the main part of a page (be it an article, the list of posts or the different categories) using CSS. Because of this, the
part of the article.html template is made redundant, so it is removed. Finally, the generic
is replaced by an
tag to surround the article's content. --- pelican/themes/simple/templates/article.html | 6 ++---- pelican/themes/simple/templates/base.html | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pelican/themes/simple/templates/article.html b/pelican/themes/simple/templates/article.html index f85c7410..6dd0d967 100644 --- a/pelican/themes/simple/templates/article.html +++ b/pelican/themes/simple/templates/article.html @@ -22,7 +22,6 @@ {% endblock %} {% block content %} -

{% endif %} -
+
{{ article.content }} -
-

+
{% endblock %} diff --git a/pelican/themes/simple/templates/base.html b/pelican/themes/simple/templates/base.html index 2c17dbfb..b1ea57da 100644 --- a/pelican/themes/simple/templates/base.html +++ b/pelican/themes/simple/templates/base.html @@ -51,8 +51,10 @@ {% endfor %} {% endif %} +
{% block content %} {% endblock %} +