From: Vladimír Vondruš Date: Sun, 10 Dec 2017 14:41:18 +0000 (+0100) Subject: theme: page header is not supported on landing pages. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=38d0aba1d24810541c35f343b394a8230bf86b19;p=blog.git theme: page header is not supported on landing pages. --- 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 %}