summaryrefslogtreecommitdiff
path: root/src/pages/sitemap/categories.xml.js
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2025-11-13 10:38:49 +0000
committerIT Fixcomart <it@fixcomart.co.id>2025-11-13 10:38:49 +0000
commit4e24ad6def0e8df890b72f2f7f877424d8ed84cc (patch)
tree3f11401901f5439fb25ea351346ec14ee622fa26 /src/pages/sitemap/categories.xml.js
parent9cbbe5e12f97af023e2f53e4add4c5e5fd9b4667 (diff)
parent48c1110541a30bb33726a6f46737615b98f1d9c5 (diff)
Merged in fix_indexing_google (pull request #470)
<MIqdad>Fix indexing google
Diffstat (limited to 'src/pages/sitemap/categories.xml.js')
-rw-r--r--src/pages/sitemap/categories.xml.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pages/sitemap/categories.xml.js b/src/pages/sitemap/categories.xml.js
index 357a2072..18c8a8f3 100644
--- a/src/pages/sitemap/categories.xml.js
+++ b/src/pages/sitemap/categories.xml.js
@@ -28,11 +28,11 @@ export async function getServerSideProps({ res }) {
function addUrlToSitemap(sitemap, name, id) {
const baseUrl = process.env.SELF_HOST + '/shop/category/';
- // const date = new Date()
- const date = '2025-10-30';
+ const date = new Date();
+ // const date = '2025-10-30';
const url = sitemap.ele('url');
url.ele('loc', createSlug(baseUrl, name, id));
- url.ele('lastmod', date);
+ url.ele('lastmod', date.toISOString().slice(0, 10));
url.ele('changefreq', 'weekly');
url.ele('priority', '0.6');
}