From d4d70aecd777b78a3b10aa04082557b6a389c826 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson <frjo@xdeb.org> Date: Fri, 3 May 2019 16:02:16 +0200 Subject: [PATCH] Use .specific to return this page in its most specific subclassed form. --- opentech/templates/base.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opentech/templates/base.html b/opentech/templates/base.html index 5102206f8..c70f7b62f 100644 --- a/opentech/templates/base.html +++ b/opentech/templates/base.html @@ -70,8 +70,8 @@ {% block header %} {% if page.header_image %} {% image page.header_image fill-2560x410 as header_image %} - {% elif page.get_parent.header_image %} - {% image page.get_parent.header_image fill-2560x410 as header_image %} + {% elif page.get_parent.specific.header_image %} + {% image page.get_parent.specific.header_image fill-2560x410 as header_image %} {% endif %} <header class="header header--standard {% if page.header_image %}header--has-bg-image{% endif %} {% block header_modifier %}{% endblock %}" {% if header_image %}style="background-image:url('{{ header_image.url }}')"{% endif %}> -- GitLab