summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2017-05-14 16:43:31 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2017-05-14 16:43:31 +0200
commit2f41dd86c826c3754f49a55a5fd87c5e924417cc (patch)
tree0b8a59cef74d24b4f36c7a289f2f0e2d4cf0ae28
parenta5e590a25f7fcb829daa2b100ae29503c9c4d070 (diff)
Omit empty titles from articles.
-rw-r--r--mulkcms.lisp2
-rw-r--r--templates/article.html4
2 files changed, 4 insertions, 2 deletions
diff --git a/mulkcms.lisp b/mulkcms.lisp
index c4bbc60..5adc7a7 100644
--- a/mulkcms.lisp
+++ b/mulkcms.lisp
@@ -343,7 +343,7 @@
(list :publishing-date publishing-date
:revision rid
:last-updated-date date
- :title title
+ :title (and (not (equal "" title)) title)
:body content
:article-id article
:global-id global-id
diff --git a/templates/article.html b/templates/article.html
index aed5406..cde94fc 100644
--- a/templates/article.html
+++ b/templates/article.html
@@ -1,6 +1,8 @@
<article>
<div class="article">
- <h1><a href="{link|html-attr-value}">{title}</a></h1>
+ {.section title}
+ <h1><a href="{link|html-attr-value}">{@}</a></h1>
+ {.end}
<div class="article-header">
<header>