chiark / gitweb /
theme: page header is not supported on landing pages.
authorVladimír Vondruš <mosra@centrum.cz>
Sun, 10 Dec 2017 14:41:18 +0000 (15:41 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Mon, 11 Dec 2017 01:48:25 +0000 (02:48 +0100)
doc/pelican/theme.rst
pelican-theme/templates/page.html

index a8e5102e1fc22aabe37d09d6751fc5a386c21632..3bef9bcbe1976f12d271966e9b0f194855eafb36 100644 (file)
@@ -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`_
 -------------------------------
 
index 935b39990b8e4b759425f78fc71a29476c7bda06..068e08c3a3303116bc7338859819cdc0a109b7ce 100644 (file)
@@ -47,7 +47,7 @@
 {% endblock %}
 
 {% block main %}
-{% if page.header %}
+{% if not page.landing and page.header %}
 <div class="m-container m-container-inflatable">
   <div class="m-row">
     <div class="m-col-l-10 m-push-l-1 m-nopadb">