Minor changes

pull/1/head
Esther 2020-06-22 17:44:15 +01:00
parent 58c9e84f78
commit db2ba0684b
No known key found for this signature in database
GPG Key ID: 162A307C5EBD40EA
3 changed files with 4 additions and 3 deletions

4
app.js
View File

@ -25,11 +25,13 @@ app.use(sassMiddleware({
}));
app.use(express.static(path.join(__dirname, 'public')));
app.disable('x-powered-by');
app.use('/', indexRouter);
// catch 404 and forward to error handler
app.use(function(req, res, next) {
next(createError(404));
next(createError(404);
});
// error handler

View File

@ -1,6 +1,5 @@
$(document).ready(function () {
$('.ham-button').on('click', function () {
$('.ham').toggleClass('open');
});
});

View File

@ -3,7 +3,7 @@ var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' });
res.render('index', { title: 'Home', description: "Hello, I'm Esther" });
});
module.exports = router;