From 9a4a06ead4e5ed4578ff270e719670713449c081 Mon Sep 17 00:00:00 2001 From: 1379 <1379@1379.com> Date: Sat, 18 Mar 2023 13:40:13 +0800 Subject: [PATCH] fix: sitemap url change to 'sitemap.xml' --- handler/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/router.go b/handler/router.go index c52bf6b..a4b1f37 100644 --- a/handler/router.go +++ b/handler/router.go @@ -293,7 +293,7 @@ func (s *Server) RegisterRouters() { contentRouter.GET("/feed.xml", s.wrapTextHandler(s.FeedHandler.Feed)) contentRouter.GET("/feed/categories/:slug", s.wrapTextHandler(s.FeedHandler.CategoryFeed)) contentRouter.GET("/atom/categories/:slug", s.wrapTextHandler(s.FeedHandler.CategoryAtom)) - contentRouter.GET("/sitemap", s.wrapTextHandler(s.FeedHandler.SitemapXML)) + contentRouter.GET("/sitemap.xml", s.wrapTextHandler(s.FeedHandler.SitemapXML)) contentRouter.GET("/sitemap.html", s.wrapHTMLHandler(s.FeedHandler.SitemapHTML)) contentRouter.GET("/version", s.wrapHandler(s.ViewHandler.Version))