seo: expand sitemap to include all project pages
This commit is contained in:
parent
2e92e45ee6
commit
f4b983cad2
1 changed files with 9 additions and 0 deletions
|
|
@ -1,6 +1,14 @@
|
||||||
import { MetadataRoute } from "next";
|
import { MetadataRoute } from "next";
|
||||||
|
import { projects } from "@/data/projects";
|
||||||
|
|
||||||
export default function sitemap(): MetadataRoute.Sitemap {
|
export default function sitemap(): MetadataRoute.Sitemap {
|
||||||
|
const projectEntries: MetadataRoute.Sitemap = projects.map((project) => ({
|
||||||
|
url: `https://www.wilddragon.net/projects/${project.slug}`,
|
||||||
|
lastModified: new Date(),
|
||||||
|
changeFrequency: "yearly",
|
||||||
|
priority: 0.8,
|
||||||
|
}));
|
||||||
|
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
url: "https://www.wilddragon.net",
|
url: "https://www.wilddragon.net",
|
||||||
|
|
@ -8,5 +16,6 @@ export default function sitemap(): MetadataRoute.Sitemap {
|
||||||
changeFrequency: "monthly",
|
changeFrequency: "monthly",
|
||||||
priority: 1,
|
priority: 1,
|
||||||
},
|
},
|
||||||
|
...projectEntries,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue