update main page to use hbs for portfolio

This commit is contained in:
Nikola Petrov
2024-01-26 20:46:29 +01:00
parent 4c6290a599
commit 07cd4bff3a
3 changed files with 47 additions and 176 deletions

View File

@@ -3,7 +3,34 @@ var router = express.Router();
/* GET home page. */
router.get('/', function (req, res, next) {
res.render('main/2_0', { title: 'Nikola Petrov', disableBootStrap: true });
const categorys = ["web development", "applications", "web design"];
const entry = [
{
category: categorys[0],
img: "/images/logo.png",
title: "Title 0",
des: "desc",
link: "#"
},
{
category: categorys[1],
img: "/images/logo.png",
title: "Title 1",
des: "desc",
link: "#"
},
{
category: categorys[2],
img: "/images/logo.png",
title: "Title 2",
des: "desc",
link: "#"
}
];
res.render('main/2_0', { title: 'Nikola Petrov', disableBootStrap: true, categorys, entry });
});
router.get('/old', function (req, res, next) {