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:
Robert Brightling 2017-10-25 13:06:10 +01:00
parent e7c18e80b0
commit 7e44e0ff80
11 changed files with 13 additions and 13 deletions

View File

@ -5,7 +5,7 @@
{% block header %}
<!-- Page Header -->
{% 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 %}
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
{% else %}

View File

@ -89,9 +89,9 @@
{% block header %}
<!-- Page Header -->
{% 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 %}
<header class="intro-header" style="background-image: url('{{ HEADER_COVER }}')">
<header class="intro-header" style="background-image: url('{{ SITEURL }}/{{ HEADER_COVER }}')">
{% elif HEADER_COLOR %}
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
{% else %}

View File

@ -14,7 +14,7 @@
{% block header %}
<!-- Page Header -->
{% 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 %}
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
{% else %}

View File

@ -5,7 +5,7 @@
{% block header %}
<!-- Page Header -->
{% 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 %}
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
{% else %}

View File

@ -5,7 +5,7 @@
{% block header %}
<!-- Page Header -->
{% 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 %}
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
{% else %}

View File

@ -5,7 +5,7 @@
{% block header %}
<!-- Page Header -->
{% 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 %}
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
{% else %}

View File

@ -4,7 +4,7 @@
<!-- 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('{{ SITEURL }}/{{ HEADER_COVER }}')">
{% elif HEADER_COLOR %}
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
{% else %}

View File

@ -5,9 +5,9 @@
{% block header %}
<!-- Page Header -->
{% 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 %}
<header class="intro-header" style="background-image: url('{{ HEADER_COVER }}')">
<header class="intro-header" style="background-image: url('{{ SITEURL }}/{{ HEADER_COVER }}')">
{% elif HEADER_COLOR %}
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
{% else %}

View File

@ -5,7 +5,7 @@
{% block header %}
<!-- Page Header -->
{% 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 %}
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
{% else %}

View File

@ -2,7 +2,7 @@
{% block title %}{{ SITENAME }} - Tag {{ tag }}{% endblock %}
{% block header %}
{% 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 %}
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
{% else %}

View File

@ -5,7 +5,7 @@
{% block header %}
<!-- Page Header -->
{% 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 %}
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
{% else %}