From f438f0eb89d30c9b3e3738e58e177b8f45f1917f Mon Sep 17 00:00:00 2001 From: Brit Butler Date: Wed, 12 Sep 2012 14:18:23 -0400 Subject: [PATCH] Minor cleanups/fixes in preparation for feeds. --- src/coleslaw.lisp | 4 +++- src/indices.lisp | 3 +-- themes/hyde/base.tmpl | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/coleslaw.lisp b/src/coleslaw.lisp index 381a83e..d2899cf 100644 --- a/src/coleslaw.lisp +++ b/src/coleslaw.lisp @@ -12,7 +12,9 @@ Additional args to render CONTENT can be passed via RENDER-ARGS." (filepath (merge-pathnames path (staging *config*))) (page (funcall (theme-fn (or theme-fn 'base)) (list :config *config* - :content (apply 'render content render-args) + :content content + :raw (apply 'render content render-args) + :pubdate (make-pubdate) :body-inject (gethash :body *injections*) :head-inject (gethash :head *injections*))))) (ensure-directories-exist filepath) diff --git a/src/indices.lisp b/src/indices.lisp index d630e1d..45ee1fd 100644 --- a/src/indices.lisp +++ b/src/indices.lisp @@ -10,8 +10,7 @@ (list :tags (all-tags) :months (all-months) :config *config* - :title (index-title index) - :posts (index-posts index) + :index content :prev prev :next next))) diff --git a/themes/hyde/base.tmpl b/themes/hyde/base.tmpl index 9b43dd6..21f89a9 100644 --- a/themes/hyde/base.tmpl +++ b/themes/hyde/base.tmpl @@ -21,7 +21,7 @@ {$config.title}
- {$content |noAutoescape} + {$raw |noAutoescape}
{if $bodyInject} {$bodyInject |noAutoescape} {/if}