瀏覽代碼

Sitemap plugin tweaks.

Brit Butler 11 年之前
父節點
當前提交
e44dcbf05d
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 3 3
      plugins/sitemap.lisp
  2. 1 1
      themes/sitemap.tmpl

+ 3 - 3
plugins/sitemap.lisp

@@ -18,12 +18,12 @@
18 18
 (in-package :coleslaw-sitemap)
19 19
 
20 20
 (defmethod deploy :before (staging)
21
-  "Render sitemap.xml under document root"
21
+  "Render sitemap.xml under document root."
22 22
   (declare (ignore staging))
23 23
   (let ((urls (append '("" "sitemap.xml") ; empty string is for root url
24
-                      (mapcar #'page-url (find-all 'coleslaw:post)))))
24
+                      (mapcar #'page-url (hash-table-values coleslaw::*site*)))))
25 25
     (write-page (rel-path (staging-dir *config*) "sitemap.xml")
26
-                (funcall (theme-fn 'sitemap "feeds")
26
+                (funcall (theme-fn 'sitemap "sitemap")
27 27
                          (list :config *config*
28 28
                                :urls urls
29 29
                                :pubdate (format-timestring nil (now)))))))

+ 1 - 1
themes/sitemap.tmpl

@@ -1,4 +1,4 @@
1
-{namespace coleslaw.theme.feeds}
1
+{namespace coleslaw.theme.sitemap}
2 2
 
3 3
 {template sitemap}
4 4
 <?xml version="1.0"?>{\n}