This is great
-Welcome to templating using EJS
+welcome to len0rdsNet
+i don't know what i'm doing
diff --git a/assets/.DS_Store b/assets/.DS_Store deleted file mode 100644 index 7ecb911..0000000 Binary files a/assets/.DS_Store and /dev/null differ diff --git a/assets/css/site.css b/assets/css/site.css new file mode 100644 index 0000000..db5995e --- /dev/null +++ b/assets/css/site.css @@ -0,0 +1,5 @@ +.img-jumbotron { + background-image: url("../img/logo.jpg"); + background-size: cover; + height: 50vh; +} diff --git a/server.js b/server.js index e051fd1..a0c7817 100644 --- a/server.js +++ b/server.js @@ -1,6 +1,8 @@ var express = require('express'); var app = express(); +console.log('Hello'); + // set the view engine to ejs app.set('view engine', 'ejs'); @@ -10,8 +12,7 @@ app.get('/', function(req, res) { res.render('pages/index'); }); -app.get('/about', function(req, res) { - res.render('pages/about'); -}); +// add folder for static content: +app.use(express.static(__dirname + '/assets')); -app.listen(8080); \ No newline at end of file +app.listen(8090); \ No newline at end of file diff --git a/views/pages/index.ejs b/views/pages/index.ejs index c2b9033..5fc2c17 100644 --- a/views/pages/index.ejs +++ b/views/pages/index.ejs @@ -2,17 +2,20 @@
- <% include ../partials/includes %> + <% include ../partials/include %> - + +Welcome to templating using EJS
+i don't know what i'm doing