summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-06-08 19:09:49 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-06-08 19:09:49 +0200
commit4d6185b20655ae5ce9c21779e64fbb0680c4fbfd (patch)
treeba63a604ccd17d96a9499d75b1898fb33f3a855c
parent4f4bd92820a72f1c28c414f13cd6667886c056ac (diff)
downloadrabalderz-4d6185b20655ae5ce9c21779e64fbb0680c4fbfd.tar.gz
rabalderz-4d6185b20655ae5ce9c21779e64fbb0680c4fbfd.tar.bz2
rabalderz-4d6185b20655ae5ce9c21779e64fbb0680c4fbfd.zip
Dont try to display publish date if unknown.
-rw-r--r--templates/posts/header.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/posts/header.html b/templates/posts/header.html
index 9340f87..eb5b2ec 100644
--- a/templates/posts/header.html
+++ b/templates/posts/header.html
@@ -2,7 +2,7 @@
<h1 class="post-title">{{ post.title }}</h1>
<div class="post-meta">
<span class="meta-publish">
- Publisert: {{ post.date }}
+ {% if post.date %}Publisert: {{ post.date }}{% endif %}
{% if post.extra.author %}av {{ post.extra.author }}{% endif %}
</span>
{% if post.taxonomies %}