Skip to content

Commit e4c0efb

Browse files
authored
changed the date of the posts in sitemap
1 parent c3385e9 commit e4c0efb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/app/sitemap.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap>{
2424
const post = await getPostBySlug(slug)
2525
return {
2626
url: absoluteURL(`/posts/${slug}`),
27-
lastModified: post?.date ?? now,
27+
lastModified: post?.editDate ?? now,
2828
changeFrequency: "daily",
2929
priority: 0.8,
3030
images: post ? [

0 commit comments

Comments
 (0)