From 38d0aba1d24810541c35f343b394a8230bf86b19 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 10 Dec 2017 15:41:18 +0100 Subject: [PATCH] theme: page header is not supported on landing pages. --- doc/pelican/theme.rst | 6 ++++++ pelican-theme/templates/page.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/pelican/theme.rst b/doc/pelican/theme.rst index a8e5102e..3bef9bcb 100644 --- a/doc/pelican/theme.rst +++ b/doc/pelican/theme.rst @@ -381,6 +381,12 @@ above: FORMATTED_FIELDS += ['header', 'footer'] +.. note-warning:: + + The :rst:`:header:` field is not supported on `landing pages`_. In case + both :rst:`:landing:` and :rst:`:header:` is present, :rst:`:header:` is + ignored. + `(Social) meta tags for pages`_ ------------------------------- diff --git a/pelican-theme/templates/page.html b/pelican-theme/templates/page.html index 935b3999..068e08c3 100644 --- a/pelican-theme/templates/page.html +++ b/pelican-theme/templates/page.html @@ -47,7 +47,7 @@ {% endblock %} {% block main %} -{% if page.header %} +{% if not page.landing and page.header %}
-- 2.30.2