|
@@ -15,10 +15,6 @@
|
15
|
15
|
(local-time:now))))
|
16
|
16
|
(local-time:format-rfc1123-timestring nil timestamp)))
|
17
|
17
|
|
18
|
|
-(defun xml-escape (string)
|
19
|
|
- "Escape the given string for XML."
|
20
|
|
- (format nil "<![CDATA[ ~A ]]>" string))
|
21
|
|
-
|
22
|
18
|
(defun render-feed ()
|
23
|
19
|
"Render and write the feed for the site."
|
24
|
20
|
(let* ((posts (subseq (by-date (hash-table-values *posts*)) 0 10))
|
|
@@ -26,8 +22,8 @@
|
26
|
22
|
collect (list :title (post-title post)
|
27
|
23
|
:url (post-url post)
|
28
|
24
|
:date (make-pubdate (post-date post))
|
29
|
|
- :tags (mapcar #'xml-escape (post-tags post))
|
30
|
|
- :content (xml-escape (post-content post))))))
|
|
25
|
+ :tags (post-tags post)
|
|
26
|
+ :content (post-content post)))))
|
31
|
27
|
(render-page "rss.xml"
|
32
|
28
|
(funcall (theme-fn "RSS")
|
33
|
29
|
(list :pubdate (make-pubdate)
|