aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--router.js2
-rw-r--r--views/error/404.ejs10
2 files changed, 1 insertions, 11 deletions
diff --git a/router.js b/router.js
index d0442b8..6279d62 100644
--- a/router.js
+++ b/router.js
@@ -45,7 +45,7 @@ module.exports = function(app) {
*/
app.get('*', function(req, res) {
- res.render('error/404', { title: 'Fant ikke siden' });
+ res.render('error', { title: '404', text: 'Fant ikke siden' });
});
diff --git a/views/error/404.ejs b/views/error/404.ejs
deleted file mode 100644
index 22ba15d..0000000
--- a/views/error/404.ejs
+++ /dev/null
@@ -1,10 +0,0 @@
-<% include ../header %>
-
-</head>
-<body>
- <h1><%= title %></h1>
- <p>Velkommen til <%= title %></p>
- <p>Her kommer det <em>kanskje</em> mer senere.</p>
-
-
-<% include ../footer %>