Fix header cover again

This commit is contained in:
gilsondev 2014-12-10 15:53:48 -02:00
parent 11e175851a
commit 98a5545d8e
9 changed files with 45 additions and 12 deletions

View File

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

View File

@ -29,12 +29,12 @@
<h2 class="post-title">
{{ article.title }}
</h2>
{% if article.summary %}
<h3 class="post-subtitle">
{{ article.summary }}
</h3>
{% endif %}
</a>
{% if article.summary %}
<h3 class="post-subtitle">
{{ article.summary }}
</h3>
{% endif %}
<p class="post-meta">Posted by
{% for author in article.authors %}
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>

View File

@ -5,6 +5,11 @@
{% block header %}
<!-- Page Header -->
<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 }}')">
{% else %}
<header class="intro-header" style="background-image: url('{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/home-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,7 +4,11 @@
{% block header %}
<!-- Page Header -->
<header class="intro-header" style="background-image: url('{{ HEADER_COVER|default('{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/home-bg.jpg') }}')">
{% if 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 %}
<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,7 +4,11 @@
{% block header %}
<!-- Page Header -->
<header class="intro-header" style="background-image: url('{{ HEADER_COVER|default('{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/home-bg.jpg') }}')">
{% if 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 %}
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">