Add SITEURL prepend to header cover images.
Prepend SITEURL to HEADER_COVER and article.header_cover in templates so that the site can be on a subdirectory, such as http://mywebsite.com/blog.
This commit is contained in:
parent
e7c18e80b0
commit
7e44e0ff80
@ -5,7 +5,7 @@
|
|||||||
{% block header %}
|
{% block header %}
|
||||||
<!-- 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('{{ SITEURL }}/{{ HEADER_COVER }}')">
|
||||||
{% elif HEADER_COLOR %}
|
{% elif HEADER_COLOR %}
|
||||||
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -89,9 +89,9 @@
|
|||||||
{% block header %}
|
{% block header %}
|
||||||
<!-- Page Header -->
|
<!-- Page Header -->
|
||||||
{% if article.header_cover %}
|
{% if article.header_cover %}
|
||||||
<header class="intro-header" style="background-image: url('{{ article.header_cover }}')">
|
<header class="intro-header" style="background-image: url('{{ SITEURL }}/{{ 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('{{ SITEURL }}/{{ HEADER_COVER }}')">
|
||||||
{% elif HEADER_COLOR %}
|
{% elif HEADER_COLOR %}
|
||||||
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
{% block header %}
|
{% block header %}
|
||||||
<!-- 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('{{ SITEURL }}/{{ HEADER_COVER }}')">
|
||||||
{% elif HEADER_COLOR %}
|
{% elif HEADER_COLOR %}
|
||||||
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
{% block header %}
|
{% block header %}
|
||||||
<!-- 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('{{ SITEURL }}/{{ HEADER_COVER }}')">
|
||||||
{% elif HEADER_COLOR %}
|
{% elif HEADER_COLOR %}
|
||||||
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
{% block header %}
|
{% block header %}
|
||||||
<!-- 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('{{ SITEURL }}/{{ HEADER_COVER }}')">
|
||||||
{% elif HEADER_COLOR %}
|
{% elif HEADER_COLOR %}
|
||||||
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
{% block header %}
|
{% block header %}
|
||||||
<!-- 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('{{ SITEURL }}/{{ HEADER_COVER }}')">
|
||||||
{% elif HEADER_COLOR %}
|
{% elif HEADER_COLOR %}
|
||||||
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<!-- 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('{{ SITEURL }}/{{ HEADER_COVER }}')">
|
||||||
{% elif HEADER_COLOR %}
|
{% elif HEADER_COLOR %}
|
||||||
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
{% block header %}
|
{% block header %}
|
||||||
<!-- Page Header -->
|
<!-- Page Header -->
|
||||||
{% 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('{{ SITEURL }}/{{ 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('{{ SITEURL }}/{{ HEADER_COVER }}')">
|
||||||
{% elif HEADER_COLOR %}
|
{% elif HEADER_COLOR %}
|
||||||
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
{% block header %}
|
{% block header %}
|
||||||
<!-- 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('{{ SITEURL }}/{{ HEADER_COVER }}')">
|
||||||
{% elif HEADER_COLOR %}
|
{% elif HEADER_COLOR %}
|
||||||
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
{% block title %}{{ SITENAME }} - Tag {{ tag }}{% endblock %}
|
{% block title %}{{ SITENAME }} - Tag {{ tag }}{% endblock %}
|
||||||
{% 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('{{ SITEURL }}/{{ HEADER_COVER }}')">
|
||||||
{% elif HEADER_COLOR %}
|
{% elif HEADER_COLOR %}
|
||||||
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
{% block header %}
|
{% block header %}
|
||||||
<!-- 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('{{ SITEURL }}/{{ HEADER_COVER }}')">
|
||||||
{% elif HEADER_COLOR %}
|
{% elif HEADER_COLOR %}
|
||||||
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
|
Loading…
Reference in New Issue
Block a user