Browse Source

Minor cleanups/fixes in preparation for feeds.

Brit Butler 12 years ago
parent
commit
f438f0eb89
3 changed files with 5 additions and 4 deletions
  1. 3 1
      src/coleslaw.lisp
  2. 1 2
      src/indices.lisp
  3. 1 1
      themes/hyde/base.tmpl

+ 3 - 1
src/coleslaw.lisp

@@ -12,7 +12,9 @@ Additional args to render CONTENT can be passed via RENDER-ARGS."
12 12
          (filepath (merge-pathnames path (staging *config*)))
13 13
          (page (funcall (theme-fn (or theme-fn 'base))
14 14
                         (list :config *config*
15
-                              :content (apply 'render content render-args)
15
+                              :content content
16
+                              :raw (apply 'render content render-args)
17
+                              :pubdate (make-pubdate)
16 18
                               :body-inject (gethash :body *injections*)
17 19
                               :head-inject (gethash :head *injections*)))))
18 20
     (ensure-directories-exist filepath)

+ 1 - 2
src/indices.lisp

@@ -10,8 +10,7 @@
10 10
            (list :tags (all-tags)
11 11
                  :months (all-months)
12 12
                  :config *config*
13
-                 :title (index-title index)
14
-                 :posts (index-posts index)
13
+                 :index content
15 14
                  :prev prev
16 15
                  :next next)))
17 16
 

+ 1 - 1
themes/hyde/base.tmpl

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