change about path to learn-to-code for SEO purposes and remove learn-to-code view and controller action
This commit is contained in:
3
app.js
3
app.js
@ -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);
|
||||
|
@ -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'
|
||||
|
@ -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
|
||||
|
@ -1,5 +0,0 @@
|
||||
extends ../layout
|
||||
block content
|
||||
.text-center
|
||||
h2.big-text Learn to Code
|
||||
include ../partials/faq
|
Reference in New Issue
Block a user