update sitemap
This commit is contained in:
@ -44,6 +44,11 @@ module.exports = {
|
|||||||
next(err);
|
next(err);
|
||||||
}
|
}
|
||||||
Bonfire.find({}, function (err, bonfires) {
|
Bonfire.find({}, function (err, bonfires) {
|
||||||
|
if (err) {
|
||||||
|
debug('User err: ', err);
|
||||||
|
next(err);
|
||||||
|
}
|
||||||
|
Story.find({}, function (err, stories) {
|
||||||
if (err) {
|
if (err) {
|
||||||
debug('User err: ', err);
|
debug('User err: ', err);
|
||||||
next(err);
|
next(err);
|
||||||
@ -54,7 +59,9 @@ module.exports = {
|
|||||||
now: now,
|
now: now,
|
||||||
users: users,
|
users: users,
|
||||||
challenges: challenges,
|
challenges: challenges,
|
||||||
bonfires: bonfires
|
bonfires: bonfires,
|
||||||
|
stories: stories
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -110,3 +110,19 @@ urlset(xmlns="http://www.sitemaps.org/schemas/sitemap/0.9")
|
|||||||
lastmod= now
|
lastmod= now
|
||||||
changefreq weekly
|
changefreq weekly
|
||||||
priority= 0.5
|
priority= 0.5
|
||||||
|
|
||||||
|
//- Stories
|
||||||
|
each story in stories
|
||||||
|
url
|
||||||
|
loc #{appUrl}/#{story.storyLink}
|
||||||
|
lastmod= now
|
||||||
|
changefreq daily
|
||||||
|
priority= 0.9
|
||||||
|
|
||||||
|
//- Nonprofit
|
||||||
|
each nonprofit in nonprofits
|
||||||
|
url
|
||||||
|
loc #{appUrl}/#{nonprofit.nonprofitLink}
|
||||||
|
lastmod= now
|
||||||
|
changefreq daily
|
||||||
|
priority= 0.9
|
Reference in New Issue
Block a user