v1.18.x
barisusakli 8 years ago
parent 2f92ce1527
commit 444da3c9ec

@ -9,6 +9,7 @@ var categories = require('./categories');
var topics = require('./topics');
var privileges = require('./privileges');
var meta = require('./meta');
var plugins = require('./plugins');
var utils = require('../public/src/utils');
var sitemap = {
@ -71,13 +72,18 @@ sitemap.getPages = function (callback) {
priority: 0.4
}];
plugins.fireHook('filter:sitemap.getPages', {urls: urls}, function (err, data) {
if (err) {
return callback(err);
}
sitemap.maps.pages = sm.createSitemap({
hostname: nconf.get('url'),
cacheTime: 1000 * 60 * 60 * 24, // Cached for 24 hours
urls: urls
urls: data.urls
});
sitemap.maps.pages.toXML(callback);
});
};
sitemap.getCategories = function (callback) {

Loading…
Cancel
Save