upstream #1
@ -4,10 +4,12 @@ import siteMetadata from '@/data/siteMetadata'
|
|||||||
|
|
||||||
export default function sitemap(): MetadataRoute.Sitemap {
|
export default function sitemap(): MetadataRoute.Sitemap {
|
||||||
const siteUrl = siteMetadata.siteUrl
|
const siteUrl = siteMetadata.siteUrl
|
||||||
const blogRoutes = allBlogs.map((post) => ({
|
|
||||||
url: `${siteUrl}/${post.path}`,
|
const blogRoutes = allBlogs.filter((post) => !post.draft)
|
||||||
lastModified: post.lastmod || post.date,
|
.map((post) => ({
|
||||||
}))
|
url: `${siteUrl}/${post.path}`,
|
||||||
|
lastModified: post.lastmod || post.date,
|
||||||
|
}))
|
||||||
|
|
||||||
const routes = ['', 'blog', 'projects', 'tags'].map((route) => ({
|
const routes = ['', 'blog', 'projects', 'tags'].map((route) => ({
|
||||||
url: `${siteUrl}/${route}`,
|
url: `${siteUrl}/${route}`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user