Fix header cover again

This commit is contained in:
gilsondev 2014-12-10 15:49:06 -02:00
parent ac5536b718
commit 11e175851a
2 changed files with 6 additions and 3 deletions

View File

@ -19,7 +19,11 @@
{% block header %}
<!-- Page Header -->
<header class="intro-header" style="background-image: url('{{ article.header_cover|default('{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/post-bg.jpg') }}')">
{% if article.header_cover %}
<header class="intro-header" style="background-image: url('{{ article.header_cover }}')">
{% else %}
<header class="intro-header" style="background-image: url('{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/post-bg.jpg')">
{% endif %}
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">

View File

@ -4,11 +4,10 @@
<!-- Page Header -->
<!-- Set your background image for this header on the line below. -->
{% if HEADER_COVER %}
<header class="intro-header" style="background-image: url('{{ 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 %}
<header class="intro-header" style="background-image: url('{{ HEADER_COVER}}')">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">