Merge pull request #4 from atodorov/fix_issue_1

Honor HEADER_COVER in page.html, fixes #2
This commit is contained in:
Gilson Filho 2015-11-25 14:39:45 -03:00
commit dd81fafa5f

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') }}')"> <header class="intro-header" style="background-image: url('{{ page.header_cover|default('{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/home-bg.jpg') }}')">
{% if page.header_cover %} {% if page.header_cover %}
<header class="intro-header" style="background-image: url('{{ 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 %} {% else %}
<header class="intro-header" style="background-image: url('{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/home-bg.jpg')"> <header class="intro-header" style="background-image: url('{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/home-bg.jpg')">
{% endif %} {% endif %}