Minor cleanup to RENDER-FEED.

This commit is contained in:
Brit Butler 2012-09-04 17:21:07 -04:00
parent 411079b15c
commit 215c9f3d9c

View file

@ -18,7 +18,7 @@
(defun render-feeds ()
"Render and write the feed for the site."
(let* ((bydate (by-date (hash-table-values *posts*)))
(posts (subseq bydate 0 (when (>= (length bydate) 10) 10)))
(posts (subseq bydate 0 (min (length bydate) 10)))
(content (loop for post in posts
collect (list :title (post-title post)
:url (post-url post)