Parent Directory
|
Revision Log
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 |