Browse Source

Sitemap plugin tweaks.

Brit Butler 11 years ago
parent
commit
e44dcbf05d
2 changed files with 4 additions and 4 deletions
  1. 3 3
      plugins/sitemap.lisp
  2. 1 1
      themes/sitemap.tmpl

+ 3 - 3
plugins/sitemap.lisp

18
 (in-package :coleslaw-sitemap)
18
 (in-package :coleslaw-sitemap)
19
 
19
 
20
 (defmethod deploy :before (staging)
20
 (defmethod deploy :before (staging)
21
-  "Render sitemap.xml under document root"
21
+  "Render sitemap.xml under document root."
22
   (declare (ignore staging))
22
   (declare (ignore staging))
23
   (let ((urls (append '("" "sitemap.xml") ; empty string is for root url
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
     (write-page (rel-path (staging-dir *config*) "sitemap.xml")
25
     (write-page (rel-path (staging-dir *config*) "sitemap.xml")
26
-                (funcall (theme-fn 'sitemap "feeds")
26
+                (funcall (theme-fn 'sitemap "sitemap")
27
                          (list :config *config*
27
                          (list :config *config*
28
                                :urls urls
28
                                :urls urls
29
                                :pubdate (format-timestring nil (now)))))))
29
                                :pubdate (format-timestring nil (now)))))))

+ 1 - 1
themes/sitemap.tmpl

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