From 8ee0a8c73cdde4843e31daa0fdcddba5bc0e5c9c 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 0b64899c7..169a159d7 100644 --- a/opentech/templates/base.html +++ b/opentech/templates/base.html @@ -71,8 +71,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