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*)))
(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)

View file

@ -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)))

View file

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