add HEADER_COLOR
option to render header with a simple color
This commit is contained in:
parent
b5abd59c18
commit
58e57c3bab
@ -6,6 +6,8 @@
|
|||||||
<!-- Page Header -->
|
<!-- Page Header -->
|
||||||
{% 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 }}')">
|
||||||
|
{% elif HEADER_COLOR %}
|
||||||
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% 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 %}
|
||||||
|
@ -93,6 +93,8 @@
|
|||||||
<header class="intro-header" style="background-image: url('{{ article.header_cover }}')">
|
<header class="intro-header" style="background-image: url('{{ article.header_cover }}')">
|
||||||
{% elif HEADER_COVER %}
|
{% elif HEADER_COVER %}
|
||||||
<header class="intro-header" style="background-image: url('{{ HEADER_COVER }}')">
|
<header class="intro-header" style="background-image: url('{{ HEADER_COVER }}')">
|
||||||
|
{% elif HEADER_COLOR %}
|
||||||
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
<header class="intro-header" style="background-image: url('{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/post-bg.jpg')">
|
<header class="intro-header" style="background-image: url('{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/post-bg.jpg')">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
<!-- Page Header -->
|
<!-- Page Header -->
|
||||||
{% 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 }}')">
|
||||||
|
{% elif HEADER_COLOR %}
|
||||||
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% 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 %}
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
<!-- Page Header -->
|
<!-- Page Header -->
|
||||||
{% 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 }}')">
|
||||||
|
{% elif HEADER_COLOR %}
|
||||||
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% 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 %}
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
<!-- Page Header -->
|
<!-- Page Header -->
|
||||||
{% 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 }}')">
|
||||||
|
{% elif HEADER_COLOR %}
|
||||||
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% 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 %}
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
<!-- Page Header -->
|
<!-- Page Header -->
|
||||||
{% 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 }}')">
|
||||||
|
{% elif HEADER_COLOR %}
|
||||||
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% 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 %}
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
<!-- 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 }}')">
|
||||||
|
{% elif HEADER_COLOR %}
|
||||||
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% 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 %}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
<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 %}
|
{% elif HEADER_COVER %}
|
||||||
<header class="intro-header" style="background-image: url('{{ HEADER_COVER }}')">
|
<header class="intro-header" style="background-image: url('{{ HEADER_COVER }}')">
|
||||||
|
{% elif HEADER_COLOR %}
|
||||||
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% 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 %}
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
<!-- Page Header -->
|
<!-- Page Header -->
|
||||||
{% 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 }}')">
|
||||||
|
{% elif HEADER_COLOR %}
|
||||||
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% 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 %}
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
{% block header %}
|
{% block header %}
|
||||||
{% 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 }}')">
|
||||||
|
{% elif HEADER_COLOR %}
|
||||||
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% 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 %}
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
<!-- Page Header -->
|
<!-- Page Header -->
|
||||||
{% 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 }}')">
|
||||||
|
{% elif HEADER_COLOR %}
|
||||||
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% 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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user