mirror of
https://github.com/aurora-dot/pastel.codes.git
synced 2024-12-22 06:42:20 +00:00
Started development on about page
This commit is contained in:
parent
7408ff69f1
commit
8ed1213eb2
4
app.js
4
app.js
@ -6,6 +6,7 @@ var logger = require('morgan');
|
||||
var sassMiddleware = require('node-sass-middleware');
|
||||
|
||||
var indexRouter = require('./routes/index');
|
||||
var aboutRouter = require('./routes/about');
|
||||
|
||||
var app = express();
|
||||
|
||||
@ -13,7 +14,7 @@ var app = express();
|
||||
app.set('views', path.join(__dirname, 'views'));
|
||||
app.set('view engine', 'pug');
|
||||
|
||||
app.use(logger('dev'));
|
||||
app.use(logger('common'));
|
||||
app.use(express.json());
|
||||
app.use(express.urlencoded({ extended: false }));
|
||||
app.use(cookieParser());
|
||||
@ -28,6 +29,7 @@ app.use(express.static(path.join(__dirname, 'public')));
|
||||
app.disable('x-powered-by');
|
||||
|
||||
app.use('/', indexRouter);
|
||||
app.use('/about', aboutRouter);
|
||||
|
||||
// catch 404 and forward to error handler
|
||||
app.use(function(req, res, next) {
|
||||
|
9
routes/about.js
Normal file
9
routes/about.js
Normal file
@ -0,0 +1,9 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
|
||||
/* GET home page. */
|
||||
router.get('/', function(req, res, next) {
|
||||
res.render('about', { title: 'About', description: "Who??? What??? AAAAaaa, about me." });
|
||||
});
|
||||
|
||||
module.exports = router;
|
25
views/about.pug
Normal file
25
views/about.pug
Normal file
@ -0,0 +1,25 @@
|
||||
extends layout
|
||||
|
||||
block nav-links
|
||||
li.nav-item.active
|
||||
a.nav-link(href='#')
|
||||
span Home
|
||||
li.nav-item
|
||||
a.nav-link(href='#')
|
||||
span About
|
||||
li.nav-item
|
||||
a.nav-link(href='#')
|
||||
span CV
|
||||
li.nav-item
|
||||
a.nav-link(href='https://git.pastel.codes/Blankie')
|
||||
span Projects
|
||||
li.nav-item
|
||||
a.nav-link(href='https://blog.pastel.codes')
|
||||
span Blog
|
||||
li.nav-item
|
||||
a.nav-link(href='#')
|
||||
span Contact
|
||||
|
||||
block content
|
||||
.container
|
||||
p In development
|
Loading…
Reference in New Issue
Block a user