diff --git a/README.adoc b/README.adoc index 83782a6..60acb21 100644 --- a/README.adoc +++ b/README.adoc @@ -86,6 +86,21 @@ This is site level cover image and it will be used If there is no cover image set in link:#articles[article] level. [[header-color]] + +==== Custom Header Covers + +For each page, category page, tag page or author page you can set a custom header cover. +To define it, just set the following properties in `pelicanconf.py` + +Use the page title as defined in metadata for the pages + +[source,python] +---- +HEADER_COVERS_BY_TAG = {'food': '/images/food.png', 'drinks':'/images/orange-juice.png'} +HEADER_COVERS_BY_CATEGORY = {'food': '/images/junkie-stuff.png'} +---- + + === Header Color To define a simple header background color, set the property diff --git a/templates/category.html b/templates/category.html index 9f90e54..546e6b5 100644 --- a/templates/category.html +++ b/templates/category.html @@ -23,7 +23,9 @@