shivam + claude changes
All checks were successful
Deploy Website / build-and-deploy (push) Successful in 28s
All checks were successful
Deploy Website / build-and-deploy (push) Successful in 28s
This commit is contained in:
18
app/sitemap.ts
Normal file
18
app/sitemap.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import type { MetadataRoute } from 'next';
|
||||
import { getAllPosts } from '@/lib/mdx';
|
||||
|
||||
export default function sitemap(): MetadataRoute.Sitemap {
|
||||
const posts = getAllPosts();
|
||||
|
||||
const blogEntries: MetadataRoute.Sitemap = posts.map((post) => ({
|
||||
url: `https://akkolli.net/blog/${post.slug}`,
|
||||
lastModified: new Date(post.date),
|
||||
}));
|
||||
|
||||
return [
|
||||
{ url: 'https://akkolli.net', lastModified: new Date() },
|
||||
{ url: 'https://akkolli.net/blog', lastModified: new Date() },
|
||||
{ url: 'https://akkolli.net/resume', lastModified: new Date() },
|
||||
...blogEntries,
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user