coleslaw-org / coleslaw

Flexible Lisp Blogware
BSD 2-Clause "Simplified" License
562 stars 82 forks source link

make sitemap subclass index, add to routing #199

Closed shukryzablah closed 2 years ago

shukryzablah commented 3 years ago

In this PR I fix the existing sitemap plugin.

This fixes these two PRs:

As mentioned in this comment by @PuercoPop https://github.com/coleslaw-org/coleslaw/issues/142#issuecomment-335061002, the sitemap class is subclassing index. Additionally, the entry for the sitemap has to be added to routing in the config for the plugin to work.

https://user-images.githubusercontent.com/28762146/133953586-08b6464b-afff-4df2-a155-0c7a8aadb5e0.mov

kingcons commented 2 years ago

Hadn't stopped by in a while but this seems like a good fix to me. Thanks for authoring it! I'll merge.