Fixed url in sitemap.ts

This commit is contained in:
Ryan Freeman 2023-07-31 22:42:13 +01:00
parent 5abce4bf65
commit 0edbaf5573

View File

@ -17,7 +17,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
})) }))
const posts = (await getAllArticles()).map(({slug, date}) => ({ const posts = (await getAllArticles()).map(({slug, date}) => ({
url: `https://ryanfreeman.dev/${slug}/`, url: `https://ryanfreeman.dev/writing/${slug}/`,
lastModified: new Date(date).toISOString() lastModified: new Date(date).toISOString()
})) }))