summaryrefslogtreecommitdiffstats
path: root/build/generate-licenses.go
diff options
context:
space:
mode:
authorJason Song <i@wolfogre.com>2022-12-30 23:31:00 +0800
committerGitHub <noreply@github.com>2022-12-30 23:31:00 +0800
commitd34f3a22137cd628f275407c495b7fbe5d88ec27 (patch)
treee463d8eae929a59555010f07bf4d99a8e331eb7d /build/generate-licenses.go
parent9dcaf14a148fdf748c41afc7e0aa2e6b3b273fd8 (diff)
downloadgitea-d34f3a22137cd628f275407c495b7fbe5d88ec27.tar.gz
gitea-d34f3a22137cd628f275407c495b7fbe5d88ec27.zip
Fix sitemap (#22272)
Fix #22270. Related to #18407. The old code treated both sitemap and sitemap index as the format like: ```xml ... <url> <loc>http://localhost:3000/explore/users/sitemap-1.xml</loc> </url> ... ``` Actually, it's incorrect for sitemap index, it should be: ```xml ... <sitemap> <loc>http://localhost:3000/explore/users/sitemap-1.xml</loc> </sitemap> ... ``` See https://www.sitemaps.org/protocol.html Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: delvh <dev.lh@web.de>
Diffstat (limited to 'build/generate-licenses.go')
0 files changed, 0 insertions, 0 deletions