|
@@ -15,7 +15,7 @@
|
15
|
15
|
(local-time:now))))
|
16
|
16
|
(local-time:format-rfc1123-timestring nil timestamp)))
|
17
|
17
|
|
18
|
|
-(defun render-feed ()
|
|
18
|
+(defun render-feeds ()
|
19
|
19
|
"Render and write the feed for the site."
|
20
|
20
|
(let* ((posts (subseq (by-date (hash-table-values *posts*)) 0 10))
|
21
|
21
|
(content (loop for post in posts
|
|
@@ -23,11 +23,11 @@
|
23
|
23
|
:url (post-url post)
|
24
|
24
|
:date (make-pubdate (post-date post))
|
25
|
25
|
:tags (post-tags post)
|
26
|
|
- :content (post-content post)))))
|
27
|
|
- (render-page "rss.xml"
|
28
|
|
- (funcall (theme-fn 'rss)
|
29
|
|
- (list :pubdate (make-pubdate)
|
30
|
|
- :title (title *config*)
|
31
|
|
- :siteroot (domain *config*)
|
32
|
|
- :author (author *config*)
|
33
|
|
- :posts content)) :raw t)))
|
|
26
|
+ :content (post-content post))))
|
|
27
|
+ (tmpl-args (list :pubdate (make-pubdate)
|
|
28
|
+ :title (title *config*)
|
|
29
|
+ :siteroot (domain *config*)
|
|
30
|
+ :author (author *config*)
|
|
31
|
+ :posts content)))
|
|
32
|
+ (render-page "rss.xml" (funcall (theme-fn 'rss) tmpl-args) :raw t)
|
|
33
|
+ (render-page "feed.atom" (funcall (theme-fn 'atom) tmpl-args) :raw t)))
|