From 5cf56fd7c07fcb58ebcbd1bd2f1c1db8ac3d305c Mon Sep 17 00:00:00 2001 From: Nala Ginrut Date: Mon, 2 Dec 2019 15:02:19 +0800 Subject: [PATCH] Fix unique atom id and empty title --- app/controllers/feed.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/feed.scm b/app/controllers/feed.scm index 69bae40..9587df7 100644 --- a/app/controllers/feed.scm +++ b/app/controllers/feed.scm @@ -34,8 +34,8 @@ (author (colt-conf-get 'blog-author))) `(entry (author (name ,author) (uri ,blog-url)) - (title (@ (type "text")) ,title) - (id ,(string-append blog-url "/")) ; according to W3C validation to end with '/' + (title (@ (type "text")) ,(if (string-null? title) "No title" title)) + (id ,(post-oid post)) (link (@ (rel "alternate") (type "text/html") (href ,(->url blog-url url-name)))) (published ,updated-time) -- GitLab