change about path to learn-to-code for SEO purposes and remove learn-to-code view and controller action

This commit is contained in:
Michael Q Larson
2015-01-17 11:27:27 -08:00
parent 456f7063de
commit 279df2995c
4 changed files with 2 additions and 14 deletions

3
app.js
View File

@ -202,7 +202,6 @@ app.get('/', homeController.index);
app.get(
'/resources/interview-questions',
resourcesController.interviewQuestions);
app.get('/learn-to-code', resourcesController.learnToCode);
app.get('/privacy', resourcesController.privacy);
app.get('/jquery-exercises', resourcesController.jqueryExercises);
app.get('/live-pair-programming', resourcesController.livePairProgramming);
@ -221,7 +220,7 @@ app.get(
'/programmer-interview-questions-app',
resourcesController.programmerInterviewQuestionsApp
);
app.get('/about', resourcesController.about);
app.get('/learn-to-code', resourcesController.about);
app.get('/login', userController.getLogin);
app.post('/login', userController.postLogin);
app.get('/logout', userController.logout);

View File

@ -13,12 +13,6 @@ var User = require('../models/User'),
*/
module.exports = {
learnToCode: function(req, res) {
res.render('resources/learn-to-code', {
title: 'Learn to Code'
});
},
privacy: function privacy(req, res) {
res.render('resources/privacy', {
title: 'Privacy'

View File

@ -29,7 +29,7 @@ nav.navbar.navbar-default.navbar-fixed-top.nav-height
li
a(href='http://forum.freecodecamp.com' target='_blank') Forum
li
a(href='/about') About
a(href='/learn-to-code') About
if !user
li
a.btn.signup-btn.signup-btn-nav(href='/login') Sign in

View File

@ -1,5 +0,0 @@
extends ../layout
block content
.text-center
h2.big-text Learn to Code
include ../partials/faq