Kaynağa Gözat

fix atom feed generation

Do Nhat Minh 12 yıl önce
ebeveyn
işleme
6e4082c7cb
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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