From 23c871478ed7a320ad3ac2f819bc0bf7e9c91f1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Tue, 12 Oct 2021 23:08:18 +0200 Subject: [PATCH] Fix title for pages without pageImage --- _includes/layouts/default.njk | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/_includes/layouts/default.njk b/_includes/layouts/default.njk index 638d0c1..37ffaec 100644 --- a/_includes/layouts/default.njk +++ b/_includes/layouts/default.njk @@ -38,9 +38,15 @@ article: null
- {% block header %} - {% include "header.njk" %} - {% endblock %} + {% if pageImage %} + {% block header %} + {% include "header.njk" %} + {% endblock %} + {% endif %} + + {% if not pageImage %} +

{{ title | safe }}

+ {% endif %}
{% if article %}