chore(seo): index weekly agenda routes
This commit is contained in:
+8
-1
@@ -1,4 +1,5 @@
|
||||
import { listBlogDetails } from "@/data/blog-detail";
|
||||
import { isNewsletterCategory } from "@/data/blog";
|
||||
import { listAnimationSources } from "@/data/animation-sources";
|
||||
import type { MetadataRoute } from "next";
|
||||
|
||||
@@ -42,6 +43,12 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
||||
changeFrequency: "weekly",
|
||||
priority: 0.9,
|
||||
},
|
||||
{
|
||||
url: `${SITE_URL}/agenda`,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: "weekly",
|
||||
priority: 0.9,
|
||||
},
|
||||
{
|
||||
url: `${SITE_URL}/projects`,
|
||||
lastModified: new Date(),
|
||||
@@ -75,7 +82,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
||||
];
|
||||
|
||||
const blogRoutes: MetadataRoute.Sitemap = posts.map((post) => ({
|
||||
url: `${SITE_URL}/blog/${post.slug}`,
|
||||
url: `${SITE_URL}/${isNewsletterCategory(post.category) ? "agenda" : "blog"}/${post.slug}`,
|
||||
lastModified: post.date ? new Date(post.date) : new Date(),
|
||||
changeFrequency: "monthly",
|
||||
priority: 0.7,
|
||||
|
||||
Reference in New Issue
Block a user