Minor cleanups/fixes in preparation for feeds.

This commit is contained in:
Brit Butler 2012-09-12 14:18:23 -04:00
parent 248614e516
commit f438f0eb89
3 changed files with 5 additions and 4 deletions

View file

@ -12,7 +12,9 @@ Additional args to render CONTENT can be passed via RENDER-ARGS."
(filepath (merge-pathnames path (staging *config*))) (filepath (merge-pathnames path (staging *config*)))
(page (funcall (theme-fn (or theme-fn 'base)) (page (funcall (theme-fn (or theme-fn 'base))
(list :config *config* (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*) :body-inject (gethash :body *injections*)
:head-inject (gethash :head *injections*))))) :head-inject (gethash :head *injections*)))))
(ensure-directories-exist filepath) (ensure-directories-exist filepath)

View file

@ -10,8 +10,7 @@
(list :tags (all-tags) (list :tags (all-tags)
:months (all-months) :months (all-months)
:config *config* :config *config*
:title (index-title index) :index content
:posts (index-posts index)
:prev prev :prev prev
:next next))) :next next)))

View file

@ -21,7 +21,7 @@
<a href="{$config.domain}">{$config.title}</a> <a href="{$config.domain}">{$config.title}</a>
</div> </div>
<div id="content"> <div id="content">
{$content |noAutoescape} {$raw |noAutoescape}
</div> </div>
{if $bodyInject} {$bodyInject |noAutoescape} {/if} {if $bodyInject} {$bodyInject |noAutoescape} {/if}
<div class="fineprint"> <div class="fineprint">