Przeglądaj źródła

Merge pull request #32 from mrordinaire/fix-atom-feed

Fix atom feed generation
Brit Butler 12 lat temu
rodzic
commit
a30405de7c
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      src/feeds.lisp
  2. 1 1
      themes/atom.tmpl

+ 1 - 1
src/feeds.lisp

@@ -19,7 +19,7 @@
19 19
   "Render the default RSS and ATOM feeds along with any TAG-FEEDS."
20 20
   (let ((posts (by-date (find-all 'post))))
21 21
     (dolist (feed '((:path "rss.xml" :template :rss-feed)
22
-                    (:path "feed.atom" :template :atom-feed)))
22
+                    (:path "atom.xml" :template :atom-feed)))
23 23
       (apply #'render-feed posts feed))
24 24
     (dolist (feed tag-feeds)
25 25
       (apply #'render-feed posts (list :path (format nil "~A-rss.xml" feed)

+ 1 - 1
themes/atom.tmpl

@@ -22,7 +22,7 @@
22 22
       <name>{$config.author}</name>
23 23
       <uri>{$config.domain}</uri>
24 24
     </author>
25
-    <content type="html">{$post.text |noAutoescape}</content>
25
+    <content type="html">{$post.text |escapeHtml}</content>
26 26
   </entry>
27 27
   {/foreach}
28 28