diff --git a/TODO b/TODO index b16fd5d..1f21455 100644 --- a/TODO +++ b/TODO @@ -5,7 +5,8 @@ BUGS: ; Slugs aren't unicode safe. See [reddit discussion](http://www.reddit.com/r/lisp/comments/yvh6g/coleslaw_jekylllike_static_blogware_in_500_lines/) and [mozilla code](https://github.com/mozilla/unicode-slugify/blob/master/slugify/__init__.py). TODO: -; doc themes and plugins -; fix plugins: s3 -;; Incremental compile: only "touched" posts+tags+months. By-20 must be redone, of course. -;;; plugins: analytics, logging/monitoring, crossposting, disqus +; figure out how to make render-page support predicate based injections. -> 0.7 +; doc themes and plugins, disqus and s3. -> 0.8 +; unit tests -> 0.9 +; Incremental compilation: only "touched" posts+tags+months and by-n. -> 1.0 +;; possible plugins: analytics, logging/monitoring, crossposting diff --git a/src/coleslaw.lisp b/src/coleslaw.lisp index 9fb97a1..f87a1b8 100644 --- a/src/coleslaw.lisp +++ b/src/coleslaw.lisp @@ -1,6 +1,6 @@ (in-package :coleslaw) -(defun render-page (path html &optional raw) +(defun render-page (path html &key raw) "Populate the base template with the provided HTML and write it out to PATH. If RAW is non-nil, write the content without wrapping it in the base template." (let ((filepath (merge-pathnames path (staging *config*)))) diff --git a/src/feeds.lisp b/src/feeds.lisp index c86b233..c54b53c 100644 --- a/src/feeds.lisp +++ b/src/feeds.lisp @@ -30,4 +30,4 @@ :title (title *config*) :siteroot (domain *config*) :author (author *config*) - :posts content)) t))) + :posts content)) :raw t)))