fixes rare "priority error" when generating sitemaps

v1.18.x
psychobunny 9 years ago
parent 1a5a51b67a
commit 05673e670c

@ -56,19 +56,19 @@ sitemap.getPages = function(callback) {
var urls = [{ var urls = [{
url: '', url: '',
changefreq: 'weekly', changefreq: 'weekly',
priority: '0.6' priority: 0.6
}, { }, {
url: '/recent', url: '/recent',
changefreq: 'daily', changefreq: 'daily',
priority: '0.4' priority: 0.4
}, { }, {
url: '/users', url: '/users',
changefreq: 'daily', changefreq: 'daily',
priority: '0.4' priority: 0.4
}, { }, {
url: '/groups', url: '/groups',
changefreq: 'daily', changefreq: 'daily',
priority: '0.4' priority: 0.4
}]; }];
sitemap.maps.pages = sm.createSitemap({ sitemap.maps.pages = sm.createSitemap({
@ -99,7 +99,7 @@ sitemap.getCategories = function(callback) {
categoryUrls.push({ categoryUrls.push({
url: '/category/' + category.slug, url: '/category/' + category.slug,
changefreq: 'weekly', changefreq: 'weekly',
priority: '0.4' priority: 0.4
}); });
} }
}); });
@ -153,7 +153,7 @@ sitemap.getTopicPage = function(page, callback) {
url: '/topic/' + topic.slug, url: '/topic/' + topic.slug,
lastmodISO: utils.toISOString(topic.lastposttime), lastmodISO: utils.toISOString(topic.lastposttime),
changefreq: 'daily', changefreq: 'daily',
priority: '0.6' priority: 0.6
}); });
} }
}); });

Loading…
Cancel
Save