Custom headers (#19)

* added custom headers for page, tag and category templates

* fixed readme

* fixed readme

* removed HEADER_COVER_BY_PAGE
This commit is contained in:
beleriandcrises 2018-04-29 03:05:06 +02:00 committed by Arul
parent 472f835f9a
commit 994b999633
3 changed files with 21 additions and 2 deletions

View file

@ -23,7 +23,9 @@
</nav>
<h1 class="post-title">Category {{ category }}</h1>
<span class="blog-description">Posts: {{ articles|count }}</span>
{% if HEADER_COVER %}
{% if category in HEADER_COVERS_BY_CATEGORY %}
<div class="blog-cover cover" style="background-image: url('{{ HEADER_COVERS_BY_CATEGORY.get(category) }}')">
{% elif HEADER_COVER %}
<div class="blog-cover cover" style="background-image: url('{{ HEADER_COVER }}')">
{% elif HEADER_COLOR %}
<div class="post-cover cover" style="background-color: {{ HEADER_COLOR }}">