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

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

parent 907907be
No related branches found
No related tags found
No related merge requests found
...@@ -70,8 +70,8 @@ ...@@ -70,8 +70,8 @@
{% block header %} {% block header %}
{% if page.header_image %} {% if page.header_image %}
{% image page.header_image fill-2560x410 as header_image %} {% image page.header_image fill-2560x410 as header_image %}
{% elif page.get_parent.header_image %} {% elif page.get_parent.specific.header_image %}
{% image page.get_parent.header_image fill-2560x410 as header_image %} {% image page.get_parent.specific.header_image fill-2560x410 as header_image %}
{% endif %} {% 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 %}> <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