File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import { BLOGS_DIR } from '@/utils/markdown';
22import fs from 'fs' ;
33import type { MetadataRoute } from 'next' ;
44
5+ const lastModified = new Date ( )
6+
57import { getStaticParams } from '@/locales/server' ;
68import path from 'path' ;
79export default function sitemap ( ) : MetadataRoute . Sitemap {
@@ -42,7 +44,7 @@ export default function sitemap(): MetadataRoute.Sitemap {
4244 url : `https://kubeblocks.io/docs/${ version } /${ category } /${ items ?. join (
4345 '/' ,
4446 ) } `,
45- lastModified : new Date ( ) ,
47+ lastModified,
4648 changeFrequency : 'weekly' ,
4749 priority : 0.5 ,
4850 } ) ;
@@ -59,7 +61,7 @@ export default function sitemap(): MetadataRoute.Sitemap {
5961 . forEach ( ( f ) => {
6062 sitemap . push ( {
6163 url : `https://kubeblocks.io/blog/${ f . replace ( / \. m d x / , '' ) } ` ,
62- lastModified : new Date ( ) ,
64+ lastModified,
6365 changeFrequency : 'weekly' ,
6466 priority : 0.5 ,
6567 } ) ;
You can’t perform that action at this time.
0 commit comments