From efbab27827f5d39d240f7912476b50a2551e27ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=A1=D0=B0=D0=B2?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=B5=D0=B2?= Date: Tue, 14 Jul 2015 14:29:41 +0300 Subject: [PATCH 1/3] Update sitemap.js Why not? :) --- src/sitemap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sitemap.js b/src/sitemap.js index 0c6d016e36..88793bd3a8 100644 --- a/src/sitemap.js +++ b/src/sitemap.js @@ -69,7 +69,7 @@ sitemap.getDynamicUrls = function(callback) { categoriesData.forEach(function(category) { if (category) { categoryUrls.push({ - url: '/category/' + category.cid + '/' + encodeURIComponent(utils.slugify(category.name)), + url: '/category/' + category.slug, changefreq: 'weekly', priority: '0.4' }); From 9552d9c5a304dd7e0a9825590f0935edd9bce4d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=A1=D0=B0=D0=B2?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=B5=D0=B2?= Date: Tue, 14 Jul 2015 14:33:25 +0300 Subject: [PATCH 2/3] Update sitemap.js --- src/sitemap.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sitemap.js b/src/sitemap.js index 88793bd3a8..e3f45012ff 100644 --- a/src/sitemap.js +++ b/src/sitemap.js @@ -90,17 +90,17 @@ sitemap.getDynamicUrls = function(callback) { privileges.topics.filterTids('read', tids, 0, next); }, function(tids, next) { - topics.getTopicsFields(tids, ['tid', 'title', 'lastposttime'], next); + topics.getTopicsFields(tids, ['tid', 'title', 'slug', 'lastposttime'], next); } ], function(err, topics) { if (err) { return next(err); } - topics.forEach(function(topic) { + topics.forEach(function(topic) {console.log(topic) if (topic) { topicUrls.push({ - url: '/topic/' + topic.tid + '/' + encodeURIComponent(utils.slugify(topic.title)), + url: '/topic/' + topic.slug, lastmodISO: utils.toISOString(topic.lastposttime), changefreq: 'daily', priority: '0.6' From 8209d97f055b7d2129eb6a573892a47829ea616a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=A1=D0=B0=D0=B2?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=B5=D0=B2?= Date: Tue, 14 Jul 2015 14:33:40 +0300 Subject: [PATCH 3/3] Update sitemap.js --- src/sitemap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sitemap.js b/src/sitemap.js index e3f45012ff..eaf7686acd 100644 --- a/src/sitemap.js +++ b/src/sitemap.js @@ -97,7 +97,7 @@ sitemap.getDynamicUrls = function(callback) { return next(err); } - topics.forEach(function(topic) {console.log(topic) + topics.forEach(function(topic) { if (topic) { topicUrls.push({ url: '/topic/' + topic.slug,