update sitemap
This commit is contained in:
@ -52,7 +52,7 @@ module.exports = {
|
|||||||
debug('User err: ', err);
|
debug('User err: ', err);
|
||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
Challenge.find({}, function (err, challenges) {
|
Courseware.find({}, function (err, challenges) {
|
||||||
if (err) {
|
if (err) {
|
||||||
debug('User err: ', err);
|
debug('User err: ', err);
|
||||||
return next(err);
|
return next(err);
|
||||||
@ -63,6 +63,16 @@ module.exports = {
|
|||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
Story.find({}, function (err, stories) {
|
Story.find({}, function (err, stories) {
|
||||||
|
if (err) {
|
||||||
|
debug('User err: ', err);
|
||||||
|
return next(err);
|
||||||
|
}
|
||||||
|
Nonprofit.find({}, function (err, nonprofits) {
|
||||||
|
if (err) {
|
||||||
|
debug('User err: ', err);
|
||||||
|
return next(err);
|
||||||
|
}
|
||||||
|
FieldGuide.find({}, function (err, fieldGuides) {
|
||||||
if (err) {
|
if (err) {
|
||||||
debug('User err: ', err);
|
debug('User err: ', err);
|
||||||
return next(err);
|
return next(err);
|
||||||
@ -74,7 +84,11 @@ module.exports = {
|
|||||||
users: users,
|
users: users,
|
||||||
challenges: challenges,
|
challenges: challenges,
|
||||||
bonfires: bonfires,
|
bonfires: bonfires,
|
||||||
stories: stories
|
stories: stories,
|
||||||
|
nonprofits: nonprofits,
|
||||||
|
fieldGuides: fieldGuides
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -105,7 +105,7 @@ urlset(xmlns="http://www.sitemaps.org/schemas/sitemap/0.9")
|
|||||||
//- Products
|
//- Products
|
||||||
each bonfire in bonfires
|
each bonfire in bonfires
|
||||||
url
|
url
|
||||||
loc #{appUrl}/#{bonfire.name.replace(/\s/, '-')}
|
loc #{appUrl}/bonfires/#{bonfire.name.replace(/\s/, '-')}
|
||||||
lastmod= now
|
lastmod= now
|
||||||
changefreq weekly
|
changefreq weekly
|
||||||
priority= 0.5
|
priority= 0.5
|
||||||
@ -113,7 +113,7 @@ urlset(xmlns="http://www.sitemaps.org/schemas/sitemap/0.9")
|
|||||||
//- Challenges
|
//- Challenges
|
||||||
each challenge in challenges
|
each challenge in challenges
|
||||||
url
|
url
|
||||||
loc #{appUrl}/#{challenge.challengeNumber}
|
loc #{appUrl}/challenges/#{challenge.name.replace(/\s/, '-')}
|
||||||
lastmod= now
|
lastmod= now
|
||||||
changefreq weekly
|
changefreq weekly
|
||||||
priority= 0.5
|
priority= 0.5
|
||||||
@ -121,15 +121,23 @@ urlset(xmlns="http://www.sitemaps.org/schemas/sitemap/0.9")
|
|||||||
//- Stories
|
//- Stories
|
||||||
each story in stories
|
each story in stories
|
||||||
url
|
url
|
||||||
loc #{appUrl}/#{story.storyLink}
|
loc #{appUrl}/stories/#{story.storyLink.name.replace(/\s/, '-')}
|
||||||
lastmod= now
|
lastmod= now
|
||||||
changefreq daily
|
changefreq daily
|
||||||
priority= 0.9
|
priority= 0.9
|
||||||
|
|
||||||
//- Nonprofit
|
//- Nonprofit
|
||||||
each nonprofit in nonprofits
|
each nonprofit in nonprofits
|
||||||
url
|
url
|
||||||
loc #{appUrl}/#{nonprofit.nonprofitLink}
|
loc #{appUrl}/nonprofits/#{nonprofit.name.replace(/\s/, '-')}
|
||||||
|
lastmod= now
|
||||||
|
changefreq daily
|
||||||
|
priority= 0.9
|
||||||
|
|
||||||
|
//- Nonprofit
|
||||||
|
each fieldGuide in fieldGuides
|
||||||
|
url
|
||||||
|
loc #{appUrl}/field-guide/#{fieldGuide.name.replace(/\s/, '-')}
|
||||||
lastmod= now
|
lastmod= now
|
||||||
changefreq daily
|
changefreq daily
|
||||||
priority= 0.9
|
priority= 0.9
|
Reference in New Issue
Block a user