From bdbee0a4cf94140978f46095c761a13545b70a28 Mon Sep 17 00:00:00 2001 From: "Mr. Senko" Date: Fri, 6 May 2016 00:44:28 +0300 Subject: [PATCH] Add header images and background colors. Fixes #52 --- README.rst | 11 +++++++++++ templates/base.html | 13 ++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 7a6abbf..555871b 100644 --- a/README.rst +++ b/README.rst @@ -82,6 +82,17 @@ Sidebar image - ``SITESEARCH``: [default: 'http://google.com/search'] search engine to which search form should be pointed (optional) +Header image or background color +-------------------------------- + +Header background image or color can be configured using article metadata or +global settings in the following order of preference: + +- ``header_cover`` - header background image. Configure as article metadata +- ``header_color`` - header background color. Configure as article metadata +- ``HEADER_COVER`` - global header background image setting +- ``HEADER_COLOR`` - global header background color setting + QR Code generation ------------- diff --git a/templates/base.html b/templates/base.html index a4932e5..9aae0dd 100644 --- a/templates/base.html +++ b/templates/base.html @@ -67,7 +67,18 @@ -
{% include '_includes/header.html' %}
+
+ {% include '_includes/header.html' %}