Merge pull request #2 from jsmpereira/master

Small tweaks to README and bugfixes.
This commit is contained in:
Brit Butler 2012-09-04 14:18:42 -07:00
commit 411079b15c
3 changed files with 4 additions and 3 deletions

View file

@ -39,8 +39,8 @@ Coleslaw expects post files to be formatted as follows:
```
;;;;;
title: foo
date: yyyy-mm-dd timestamp
tags: bar, baz
date: yyyy-mm-dd timestamp
format: html (for raw html) or md (for markdown)
;;;;;
your post

View file

@ -25,7 +25,7 @@ If RAW is non-nil, write the content without wrapping it in the base template."
"Compile the blog to a STAGING directory as specified in .coleslawrc."
; TODO: More incremental compilation? Don't regen whole blog unnecessarily.
(when (probe-file staging)
(cl-fad:delete-directory-and-files staging))
(run-program "rm -R ~a" staging))
(ensure-directories-exist staging)
(with-current-directory staging
(dolist (dir (list (app-path "themes/~a/css" (theme *config*))

View file

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