diff --git a/src/pages/sitemap-pages.xml.ts b/src/pages/sitemap-pages.xml.ts index aa035b4..63b1447 100644 --- a/src/pages/sitemap-pages.xml.ts +++ b/src/pages/sitemap-pages.xml.ts @@ -5,7 +5,7 @@ const site = metadata.site const staticUrls = [ '', - '/archives', + '/archive', '/search', ]; diff --git a/src/pages/sitemap-posts.xml.ts b/src/pages/sitemap-posts.xml.ts index b5ff3d1..fd9ec42 100644 --- a/src/pages/sitemap-posts.xml.ts +++ b/src/pages/sitemap-posts.xml.ts @@ -18,7 +18,7 @@ export const GET: APIRoute = async (context) => { const xml = ` ${urls.map((post) => ` - ${site}/${post.slug} + ${site}/post/${post.slug} ${dayjs(post.updated_at || post.created_at).toISOString()} ` )