update sitemap
This commit is contained in:
@ -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
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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
|
Reference in New Issue
Block a user