article.html: honor HEADER_COVER if present, use article.title for

<title> and show tags if present
This commit is contained in:
Alexander Todorov 2015-11-26 00:12:18 +02:00
parent dd81fafa5f
commit e55e841eff

View File

@ -1,4 +1,5 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}{{ article.title }}{% endblock %}
{% block head %} {% block head %}
{{ super() }} {{ super() }}
@ -32,6 +33,8 @@
<!-- 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('{{ article.header_cover }}')">
{% elif HEADER_COVER %}
<header class="intro-header" style="background-image: url('{{ HEADER_COVER }}')">
{% else %} {% else %}
<header class="intro-header" style="background-image: url('{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/post-bg.jpg')"> <header class="intro-header" style="background-image: url('{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/post-bg.jpg')">
{% endif %} {% endif %}
@ -64,6 +67,12 @@
{{ article.content }} {{ article.content }}
</article> </article>
{% if article.tags %}
<div class="tags">
<p>tags: {% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag | escape }}</a>, {% endfor %}</p>
</div>
{% endif %}
<hr> <hr>
{% if DISQUS_SITENAME and SITEURL and article.status != "draft" %} {% if DISQUS_SITENAME and SITEURL and article.status != "draft" %}