Fix header cover again
This commit is contained in:
parent
ac5536b718
commit
11e175851a
@ -19,7 +19,11 @@
|
|||||||
|
|
||||||
{% block header %}
|
{% block header %}
|
||||||
<!-- Page 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="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||||
|
@ -4,11 +4,10 @@
|
|||||||
<!-- Page Header -->
|
<!-- Page Header -->
|
||||||
<!-- Set your background image for this header on the line below. -->
|
<!-- Set your background image for this header on the line below. -->
|
||||||
{% if HEADER_COVER %}
|
{% if HEADER_COVER %}
|
||||||
<header class="intro-header" style="background-image: url('{{ 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 %}
|
||||||
<header class="intro-header" style="background-image: url('{{ HEADER_COVER}}')">
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||||
|
Loading…
Reference in New Issue
Block a user