/[sudobot]/trunk/docs/app/blog/sitemap.ts
ViewVC logotype

Annotation of /trunk/docs/app/blog/sitemap.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 627 - (hide annotations)
Sat Sep 7 09:42:28 2024 UTC (6 months, 3 weeks ago) by rakinar2
File MIME type: application/typescript
File size: 386 byte(s)
chore: add new files

1 rakinar2 627 import urls from "@/sitemap.json";
2     import { absoluteURL } from "@/utils/utils";
3     import { MetadataRoute } from "next";
4    
5     export default function Sitemap(): MetadataRoute.Sitemap {
6     return urls
7     .filter(url => url.loc === "/blog" || url.loc.startsWith("/blog/"))
8     .map(url => ({
9     url: absoluteURL(url.loc),
10     lastModified: url.lastmod,
11     }));
12     }

team@onesoftnet.eu.org
ViewVC Help
Powered by ViewVC 1.1.26