Update sitemap with current timestamp and change frequency
Updated last modified date to current timestamp and added change frequency for each URL.
This commit is contained in:
1 parent
e892ca8c87
commit
a35b21a5bb
1 file changed
+5
-2
+5
-2
@@ -2,29 +2,32 @@ import { MetadataRoute } from 'next';
|
||||
|
||||
export default function sitemap(): MetadataRoute.Sitemap {
|
||||
const baseUrl = 'https://crischarles.vercel.app';
|
||||
// Updated to match the latest timestamp from your XML generator
|
||||
const lastMod = '2026-06-15T10:13:28+00:00';
|
||||
const lastMod = new Date().toISOString();
|
||||
|
||||
return [
|
||||
{
|
||||
url: baseUrl,
|
||||
lastModified: lastMod,
|
||||
priority: 1.0,
|
||||
changeFrequency: 'weekly', // Add this
|
||||
},
|
||||
{
|
||||
url: `${baseUrl}/projects`,
|
||||
lastModified: lastMod,
|
||||
priority: 0.8,
|
||||
changeFrequency: 'monthly',
|
||||
},
|
||||
{
|
||||
url: `${baseUrl}/certifications`,
|
||||
lastModified: lastMod,
|
||||
priority: 0.8,
|
||||
changeFrequency: 'monthly',
|
||||
},
|
||||
{
|
||||
url: `${baseUrl}/blog`,
|
||||
lastModified: lastMod,
|
||||
priority: 0.8,
|
||||
changeFrequency: 'weekly',
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in new issue
Block a user