Skip to content
Snippets Groups Projects
Commit 8ee0a8c7 authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Use .specific to return this page in its most specific subclassed form.

parent 6d06eb7f
No related branches found
No related tags found
No related merge requests found
......@@ -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 %}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment