Skip to content

Commit

Permalink
Improve sitemap formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvishnusankar committed Oct 13, 2022
1 parent 8473d8f commit cf60734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next-sitemap/src/builders/sitemap-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class SitemapBuilder {
return [
'<?xml version="1.0" encoding="UTF-8"?>',
'<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">',
allSitemaps?.map((x) => `<sitemap><loc>${x}</loc></sitemap>`).join('\n'),
...(allSitemaps?.map((x) => `<sitemap><loc>${x}</loc></sitemap>`) ?? []),
'</sitemapindex>',
].join('\n')
}
Expand Down

0 comments on commit cf60734

Please sign in to comment.