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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 626 - (hide annotations)
Sat Sep 7 09:38:45 2024 UTC (6 months, 3 weeks ago) by rakinar2
File MIME type: application/typescript
File size: 445 byte(s)
chore: sync with git

1 rakinar2 575 import urls from "@/sitemap.json";
2 rakinar2 626 import { absoluteURL } from "@/utils/utils";
3 rakinar2 575 import { MetadataRoute } from "next";
4    
5     export default function Sitemap(): MetadataRoute.Sitemap {
6 rakinar2 626 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     priority: url.priority === 1 ? 1 : undefined,
12     }));
13 rakinar2 575 }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26