update main page to use hbs for portfolio
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user