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(
|
app.get(
|
||||||
'/resources/interview-questions',
|
'/resources/interview-questions',
|
||||||
resourcesController.interviewQuestions);
|
resourcesController.interviewQuestions);
|
||||||
app.get('/learn-to-code', resourcesController.learnToCode);
|
|
||||||
app.get('/privacy', resourcesController.privacy);
|
app.get('/privacy', resourcesController.privacy);
|
||||||
app.get('/jquery-exercises', resourcesController.jqueryExercises);
|
app.get('/jquery-exercises', resourcesController.jqueryExercises);
|
||||||
app.get('/live-pair-programming', resourcesController.livePairProgramming);
|
app.get('/live-pair-programming', resourcesController.livePairProgramming);
|
||||||
@ -221,7 +220,7 @@ app.get(
|
|||||||
'/programmer-interview-questions-app',
|
'/programmer-interview-questions-app',
|
||||||
resourcesController.programmerInterviewQuestionsApp
|
resourcesController.programmerInterviewQuestionsApp
|
||||||
);
|
);
|
||||||
app.get('/about', resourcesController.about);
|
app.get('/learn-to-code', resourcesController.about);
|
||||||
app.get('/login', userController.getLogin);
|
app.get('/login', userController.getLogin);
|
||||||
app.post('/login', userController.postLogin);
|
app.post('/login', userController.postLogin);
|
||||||
app.get('/logout', userController.logout);
|
app.get('/logout', userController.logout);
|
||||||
|
@ -13,12 +13,6 @@ var User = require('../models/User'),
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
learnToCode: function(req, res) {
|
|
||||||
res.render('resources/learn-to-code', {
|
|
||||||
title: 'Learn to Code'
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
privacy: function privacy(req, res) {
|
privacy: function privacy(req, res) {
|
||||||
res.render('resources/privacy', {
|
res.render('resources/privacy', {
|
||||||
title: 'Privacy'
|
title: 'Privacy'
|
||||||
|
@ -29,7 +29,7 @@ nav.navbar.navbar-default.navbar-fixed-top.nav-height
|
|||||||
li
|
li
|
||||||
a(href='http://forum.freecodecamp.com' target='_blank') Forum
|
a(href='http://forum.freecodecamp.com' target='_blank') Forum
|
||||||
li
|
li
|
||||||
a(href='/about') About
|
a(href='/learn-to-code') About
|
||||||
if !user
|
if !user
|
||||||
li
|
li
|
||||||
a.btn.signup-btn.signup-btn-nav(href='/login') Sign in
|
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