aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClemens Lutz <lutzcle@cml.li>2016-06-03 10:52:27 +0200
committerClemens Lutz <lutzcle@cml.li>2016-06-06 11:07:37 +0200
commit8f822122851f0c6796aeb5df638dbf0c91a2d9e7 (patch)
tree49908c58f769dbe414398d1a8f1938723b01ab95
parentccb8efc064dff0cc24fe715d8f83e33e061c64de (diff)
downloadpelican-themes-8f822122851f0c6796aeb5df638dbf0c91a2d9e7.zip
pelican-themes-8f822122851f0c6796aeb5df638dbf0c91a2d9e7.tar.gz
pelican-themes-8f822122851f0c6796aeb5df638dbf0c91a2d9e7.tar.bz2
pelican-bootstrap3: Don't print page title HTML tags if title is empty
-rw-r--r--pelican-bootstrap3/templates/page.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/pelican-bootstrap3/templates/page.html b/pelican-bootstrap3/templates/page.html
index f8757fa..c4d35ee 100644
--- a/pelican-bootstrap3/templates/page.html
+++ b/pelican-bootstrap3/templates/page.html
@@ -46,7 +46,9 @@
{% block content %}
<section id="content" class="body">
+ {% if page.title %}
<h1 class="entry-title">{{ page.title }}</h1>
+ {% endif %}
{% import 'includes/translations.html' as translations with context %}
{{ translations.translations_for(page) }}
{% if PDF_PROCESSOR %}