Merge pull request #199 from shukryzablah/fix-sitemap-plugin

make sitemap subclass index, add to routing
This commit is contained in:
Brit Butler 2022-04-19 11:15:23 -04:00 committed by GitHub
commit c5b368aa8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -29,7 +29,8 @@
(:month-index \"date/~~a\") (:month-index \"date/~~a\")
(:numeric-index \"~~d\") (:numeric-index \"~~d\")
(:feed \"~~a.xml\") (:feed \"~~a.xml\")
(:tag-feed \"tag/~~a.xml\")) (:tag-feed \"tag/~~a.xml\")
(:sitemap \"~~a.xml\"))
:title \"Improved Means for Achieving Deteriorated Ends\" ;; a site title :title \"Improved Means for Achieving Deteriorated Ends\" ;; a site title
:theme \"hyde\" ;; to select one of the themes in \"coleslaw/themes/\" :theme \"hyde\" ;; to select one of the themes in \"coleslaw/themes/\"

View file

@ -13,7 +13,7 @@
(in-package :coleslaw-sitemap) (in-package :coleslaw-sitemap)
(defclass sitemap () (defclass sitemap (index)
((urls :initarg :urls :reader urls))) ((urls :initarg :urls :reader urls)))
(defmethod page-url ((object sitemap)) "sitemap.xml") (defmethod page-url ((object sitemap)) "sitemap.xml")