Skip to content

Commit

Permalink
fix the sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
Quincy Larson committed Apr 23, 2015
1 parent 63a41a3 commit 92db9e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 68 deletions.
1 change: 1 addition & 0 deletions controllers/resources.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var async = require('async'),
User = require('../models/User'),
Challenge = require('./../models/Challenge'),
Courseware = require('./../models/Courseware'),
Bonfire = require('./../models/Bonfire'),
Story = require('./../models/Story'),
FieldGuide = require('./../models/FieldGuide'),
Expand Down
74 changes: 6 additions & 68 deletions views/resources/sitemap.jade
Original file line number Diff line number Diff line change
Expand Up @@ -7,43 +7,6 @@ urlset(xmlns="http://www.sitemaps.org/schemas/sitemap/0.9")
lastmod= now
priority= 0.5

url
loc http://www.freecodecamp.com/install-screenhero
changefreq weekly
lastmod= now
priority= 0.5

url
loc http://www.freecodecamp.com/nodeschool-challenges
changefreq weekly
lastmod= now
priority= 0.5


url
loc http://www.freecodecamp.com/deploy-a-website
changefreq weekly
lastmod= now
priority= 0.5

url
loc http://www.freecodecamp.com/control-shortcuts
changefreq weekly
lastmod= now
priority= 0.5

url
loc http://www.freecodecamp.com/pair-program-with-team-viewer
changefreq weekly
lastmod= now
priority= 0.5

url
loc http://www.freecodecamp.com/login
changefreq weekly
lastmod= now
priority= 0.5

url
loc http://www.freecodecamp.com/nonprofits
changefreq weekly
Expand All @@ -57,36 +20,11 @@ urlset(xmlns="http://www.sitemaps.org/schemas/sitemap/0.9")
priority= 0.5

url
loc http://www.freecodecamp.com/chromebook
changefreq weekly
lastmod= now
priority= 0.5

url
loc http://www.freecodecamp.com/live-pair-programming
changefreq weekly
lastmod= now
priority= 0.5

url
loc http://www.freecodecamp.com/privacy
changefreq weekly
lastmod= now
priority= 0.5

url
loc http://www.freecodecamp.com/jquery-exercises
loc http://www.freecodecamp.com/twitch
changefreq weekly
lastmod= now
priority= 0.5

url
loc http://www.freecodecamp.com/javascript-in-your-inbox
changefreq weekly
lastmod= now
priority= 0.5


//- Home page
url
loc= appUrl
Expand All @@ -105,39 +43,39 @@ urlset(xmlns="http://www.sitemaps.org/schemas/sitemap/0.9")
//- Products
each bonfire in bonfires
url
loc #{appUrl}/bonfires/#{bonfire.name.replace(/\s/, '-')}
loc #{appUrl}/bonfires/#{bonfire.name.replace(/\s/g, '-')}
lastmod= now
changefreq weekly
priority= 0.5

//- Challenges
each challenge in challenges
url
loc #{appUrl}/challenges/#{challenge.name.replace(/\s/, '-')}
loc #{appUrl}/challenges/#{challenge.name.replace(/\s/g, '-')}
lastmod= now
changefreq weekly
priority= 0.5

//- Stories
each story in stories
url
loc #{appUrl}/stories/#{story.storyLink.name.replace(/\s/, '-')}
loc #{appUrl}/stories/#{story.storyLink.replace(/\s/g, '-')}
lastmod= now
changefreq daily
priority= 0.9

//- Nonprofit
each nonprofit in nonprofits
url
loc #{appUrl}/nonprofits/#{nonprofit.name.replace(/\s/, '-')}
loc #{appUrl}/nonprofits/#{nonprofit.name.replace(/\s/g, '-')}
lastmod= now
changefreq daily
priority= 0.9

//- Nonprofit
each fieldGuide in fieldGuides
url
loc #{appUrl}/field-guide/#{fieldGuide.name.replace(/\s/, '-')}
loc #{appUrl}/field-guide/#{fieldGuide.name.replace(/\s/g, '-')}
lastmod= now
changefreq daily
priority= 0.9

0 comments on commit 92db9e5

Please sign in to comment.