update page titles and sitemap

This commit is contained in:
Quincy Larson
2015-10-31 02:59:09 -07:00
parent 747bf80923
commit 0fefac1090
7 changed files with 41 additions and 24 deletions

View File

@ -581,7 +581,7 @@ module.exports = function(app) {
daysRunning, daysRunning,
camperCount, camperCount,
lastCompleted, lastCompleted,
title: "A map of all Free Code Camp's Challenges" title: "A Map to Learn to Code and Become a Software Engineer"
}); });
}, },
next next

View File

@ -1,7 +1,7 @@
import { defaultProfileImage } from '../../common/utils/constantStrings.json'; import { defaultProfileImage } from '../../common/utils/constantStrings.json';
const message = const message =
'Learn to Code and Build Projects for Nonprofits'; 'Learn to Code and Help Nonprofits';
module.exports = function(app) { module.exports = function(app) {
var router = app.loopback.Router(); var router = app.loopback.Router();

View File

View File

@ -28,7 +28,6 @@ module.exports = function(app) {
router.get('/pmi-acp-agile-project-managers-form', agileProjectManagersForm); router.get('/pmi-acp-agile-project-managers-form', agileProjectManagersForm);
router.get('/nonprofits', nonprofits); router.get('/nonprofits', nonprofits);
router.get('/nonprofits-form', nonprofitsForm); router.get('/nonprofits-form', nonprofitsForm);
router.get('/our-sponsors', sponsors);
router.get('/unsubscribe/:email', unsubscribe); router.get('/unsubscribe/:email', unsubscribe);
router.get('/unsubscribed', unsubscribed); router.get('/unsubscribed', unsubscribed);
router.get('/get-started', getStarted); router.get('/get-started', getStarted);
@ -185,14 +184,14 @@ module.exports = function(app) {
function showLabs(req, res) { function showLabs(req, res) {
res.render('resources/labs', { res.render('resources/labs', {
title: 'Projects Built by Free Code Camp Students', title: 'Projects Built by Free Code Camp Software Engineers',
projects: labs projects: labs
}); });
} }
function showTestimonials(req, res) { function showTestimonials(req, res) {
res.render('resources/stories', { res.render('resources/stories', {
title: 'Stories from Happy Free Code Camp Campers', title: 'Testimonials from Happy Free Code Camp Students who got Software Engineer Jobs',
stories: testimonials stories: testimonials
}); });
} }
@ -207,15 +206,9 @@ module.exports = function(app) {
}); });
} }
function sponsors(req, res) {
res.render('sponsors/sponsors', {
title: 'The Sponsors who make Free Code Camp Possible'
});
}
function nonprofits(req, res) { function nonprofits(req, res) {
res.render('resources/nonprofits', { res.render('resources/nonprofits', {
title: 'A guide to our Nonprofit Projects' title: 'Your Nonprofit Can Get Pro Bono Code'
}); });
} }

View File

@ -109,7 +109,7 @@ module.exports = function(app) {
function hot(req, res) { function hot(req, res) {
return res.render('stories/index', { return res.render('stories/index', {
title: 'Hot stories currently trending on Camper News', title: 'Top Stories on Camper News',
page: 'hot' page: 'hot'
}); });
} }

View File

@ -128,7 +128,7 @@ module.exports = function(app) {
return res.redirect('/'); return res.redirect('/');
} }
res.render('account/signin', { res.render('account/signin', {
title: 'Free Code Camp Login' title: 'Sign in to Free Code Camp using a Social Media Account'
}); });
} }
@ -142,7 +142,7 @@ module.exports = function(app) {
return res.redirect('/'); return res.redirect('/');
} }
res.render('account/email-signin', { res.render('account/email-signin', {
title: 'Sign in to your Free Code Camp Account' title: 'Sign in to Free Code Camp using your Email Address'
}); });
} }
@ -151,7 +151,7 @@ module.exports = function(app) {
return res.redirect('/'); return res.redirect('/');
} }
res.render('account/email-signup', { res.render('account/email-signup', {
title: 'Create Your Free Code Camp Account' title: 'Sign up for Free Code Camp using your Email Address'
}); });
} }
@ -222,7 +222,7 @@ module.exports = function(app) {
}); });
res.render('account/show', { res.render('account/show', {
title: 'Camper ' + profileUser.username + '\'s portfolio', title: 'Camper ' + profileUser.username + '\'s Code Portfolio',
username: profileUser.username, username: profileUser.username,
name: profileUser.name, name: profileUser.name,
@ -397,7 +397,7 @@ module.exports = function(app) {
return res.render('account/forgot'); return res.render('account/forgot');
} }
res.render('account/reset', { res.render('account/reset', {
title: 'Password Reset', title: 'Reset your Password',
accessToken: req.accessToken.id accessToken: req.accessToken.id
}); });
} }

View File

@ -26,17 +26,41 @@ urlset(xmlns="http://www.sitemaps.org/schemas/sitemap/0.9")
priority= 0.9 priority= 0.9
url url
loc http://www.freecodecamp.com/coding-bootcamp-cost-calculator loc http://www.freecodecamp.com/labs
changefreq weekly changefreq weekly
lastmod= now lastmod= now
priority= 0.9 priority= 0.9
url
loc http://www.freecodecamp.com/stories
changefreq weekly
lastmod= now
priority= 0.9
url
loc http://www.freecodecamp.com/twitch
changefreq weekly
lastmod= now
priority= 0.9
url
loc http://www.freecodecamp.com/jobs
changefreq weekly
lastmod= now
priority= 0.9
url
loc http://www.freecodecamp.com/coding-bootcamp-cost-calculator
changefreq monthly
lastmod= now
priority= 0.9
//- User //- User
each user in users each user in users
url url
loc #{appUrl}/#{user} loc #{appUrl}/#{user}
lastmod= now lastmod= now
changefreq daily changefreq weekly
priority= 0.5 priority= 0.5
each challenge in challenges each challenge in challenges
@ -44,18 +68,18 @@ urlset(xmlns="http://www.sitemaps.org/schemas/sitemap/0.9")
loc #{appUrl}/challenges/#{challenge.replace(/\s/g, '-')} loc #{appUrl}/challenges/#{challenge.replace(/\s/g, '-')}
lastmod= now lastmod= now
changefreq weekly changefreq weekly
priority= 0.5 priority= 0.9
each story in stories each story in stories
url url
loc #{appUrl}/news/#{story.replace(/\s/g, '-')} loc #{appUrl}/news/#{story.replace(/\s/g, '-')}
lastmod= now lastmod= now
changefreq daily changefreq weekly
priority= 0.9 priority= 0.5
each nonprofit in nonprofits each nonprofit in nonprofits
url url
loc #{appUrl}/nonprofits/#{nonprofit.replace(/\s/g, '-')} loc #{appUrl}/nonprofits/#{nonprofit.replace(/\s/g, '-')}
lastmod= now lastmod= now
changefreq daily changefreq weekly
priority= 0.9 priority= 0.9