Honor HEADER_COVER in page.html, fixes #2

This commit is contained in:
Alexander Todorov 2015-11-25 17:07:56 +02:00
parent ea156f8f17
commit 3efbb41a3e

View File

@ -7,6 +7,8 @@
<header class="intro-header" style="background-image: url('{{ page.header_cover|default('{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/home-bg.jpg') }}')">
{% if page.header_cover %}
<header class="intro-header" style="background-image: url('{{ page.header_cover }}')">
{% elif HEADER_COVER %}
<header class="intro-header" style="background-image: url('{{ HEADER_COVER }}')">
{% else %}
<header class="intro-header" style="background-image: url('{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/home-bg.jpg')">
{% endif %}