Skip to content

Commit

Permalink
Sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanc1 committed Oct 24, 2024
1 parent f52e345 commit 83a9310
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/site/src/seo/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ export function getSiteSlugs(
const projectSlug = project.slug ? `/${project.slug}` : '';
const pages = project.pages
.filter((page): page is ManifestProjectItem => 'slug' in page)
.map((page) => `${baseurl}${projectSlug}/${page.slug}`);
.map(
(page) =>
`${baseurl}${projectSlug}/${page.slug?.replace(/\.index$/, '').replace(/\./g, '/')}`,
);
if (opts?.excludeIndex) return [...pages];
return [
opts?.explicitIndex
Expand Down

0 comments on commit 83a9310

Please sign in to comment.