update sitemap

This commit is contained in:
Michael Q Larson
2015-04-08 15:05:24 -07:00
parent 29b4e3b970
commit 73b536de95
2 changed files with 39 additions and 17 deletions

View File

@ -52,7 +52,7 @@ module.exports = {
debug('User err: ', err);
return next(err);
}
Challenge.find({}, function (err, challenges) {
Courseware.find({}, function (err, challenges) {
if (err) {
debug('User err: ', err);
return next(err);
@ -63,6 +63,16 @@ module.exports = {
return next(err);
}
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) {
debug('User err: ', err);
return next(err);
@ -74,7 +84,11 @@ module.exports = {
users: users,
challenges: challenges,
bonfires: bonfires,
stories: stories
stories: stories,
nonprofits: nonprofits,
fieldGuides: fieldGuides
});
});
});
});
});

View File

@ -105,7 +105,7 @@ urlset(xmlns="http://www.sitemaps.org/schemas/sitemap/0.9")
//- Products
each bonfire in bonfires
url
loc #{appUrl}/#{bonfire.name.replace(/\s/, '-')}
loc #{appUrl}/bonfires/#{bonfire.name.replace(/\s/, '-')}
lastmod= now
changefreq weekly
priority= 0.5
@ -113,7 +113,7 @@ urlset(xmlns="http://www.sitemaps.org/schemas/sitemap/0.9")
//- Challenges
each challenge in challenges
url
loc #{appUrl}/#{challenge.challengeNumber}
loc #{appUrl}/challenges/#{challenge.name.replace(/\s/, '-')}
lastmod= now
changefreq weekly
priority= 0.5
@ -121,7 +121,7 @@ urlset(xmlns="http://www.sitemaps.org/schemas/sitemap/0.9")
//- Stories
each story in stories
url
loc #{appUrl}/#{story.storyLink}
loc #{appUrl}/stories/#{story.storyLink.name.replace(/\s/, '-')}
lastmod= now
changefreq daily
priority= 0.9
@ -129,7 +129,15 @@ urlset(xmlns="http://www.sitemaps.org/schemas/sitemap/0.9")
//- Nonprofit
each nonprofit in nonprofits
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
changefreq daily
priority= 0.9