Skip to content
Snippets Groups Projects
Unverified Commit 31c28236 authored by Chris Lawton's avatar Chris Lawton Committed by GitHub
Browse files

Merge pull request #88 from OpenTechFund/feature/header-refactor

refactoring header so it accept modifiers as well as having a backgro…
parents 115181a9 112d17db
No related branches found
No related tags found
No related merge requests found
...@@ -70,12 +70,8 @@ ...@@ -70,12 +70,8 @@
{% wagtailuserbar %} {% wagtailuserbar %}
{% if page.header_image %}
{% image page.header_image fill-2560x410 as header_image %} {% image page.header_image fill-2560x410 as header_image %}
<header class="header header--standard header--has-bg-image" style="background-image:url('{{ header_image.url }}')"> <header class="header header--standard {% if page.header_image %}header--has-bg-image{% endif %} {% block header_modifier %}{% endblock %}" {% if page.header_image %}style="background-image:url('{{ header_image.url }}')"{% endif %}>
{% else %}
<header class="header header--standard {% block header_modifier %}{% endblock %}">
{% endif %}
{% block apply_button %} {% block apply_button %}
{% include "includes/apply_button.html" %} {% include "includes/apply_button.html" %}
......
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