summaryrefslogtreecommitdiffstatshomepage
path: root/tekuti/page-helpers.scm
diff options
context:
space:
mode:
authorGravatar Andreas Rottmann2009-07-03 18:08:47 +0200
committerGravatar Andreas Rottmann2009-07-03 18:08:47 +0200
commit1c0d0f2a85afe12bc25f57360912756ac151f1bc (patch)
treeb787ada2b92fef9f1a1e7b4ac4cf70702c099978 /tekuti/page-helpers.scm
parenteac799afc38391234acfd0c09c71cbecd1746927 (diff)
downloadtekuti-1c0d0f2a85afe12bc25f57360912756ac151f1bc.tar.gz
tekuti-1c0d0f2a85afe12bc25f57360912756ac151f1bc.zip
Don't crash generating the atom feed when there are no posts yet
Diffstat (limited to 'tekuti/page-helpers.scm')
-rw-r--r--tekuti/page-helpers.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/tekuti/page-helpers.scm b/tekuti/page-helpers.scm
index 709f44c..3a04d3f 100644
--- a/tekuti/page-helpers.scm
+++ b/tekuti/page-helpers.scm
@@ -278,7 +278,9 @@
(@ (xmlns "http://www.w3.org/2005/Atom") (xml:base ,(relurl "")))
(title (@ (type "text")) ,*title*)
(subtitle (@ (type "text")) ,*subtitle*)
- (updated ,(timestamp->atom-date last-modified))
+ ,@(if last-modified
+ `((updated ,(timestamp->atom-date last-modified)))
+ '())
(generator (@ (uri "http://wingolog.org/software/tekuti")
(version "what"))
"tekuti")