website/routes/portfolio.js

32 lines
874 B
JavaScript
Raw Normal View History

2019-11-28 19:03:30 +00:00
var express = require('express');
var portfolio = express.Router();
const con = require('../constants');
portfolio.get('/', (req, res) => {
res.render('portfolio', {
layout: 'portfolio',
name: `${con.name} - portfolio`,
host: req.hostname,
2019-11-30 13:14:32 +00:00
portfolio: [
{ name: 'thaldrin', source: 'https://gitdab.com/r/thaldrin' },
{ name: 'homepage', source: 'https://gitdab.com/y/website' },
{ name: 'yiff', source: 'https://github.com/codepupper/yiff' }
]
2019-11-28 19:03:30 +00:00
});
});
2019-12-09 15:24:08 +00:00
portfolio.get('/art', (req, res) => {
res.render('artwork', {
layout: 'artwork',
name: `${con.name} - artwork`,
host: req.hostname
/* portfolio: [
{ name: 'thaldrin', source: 'https://gitdab.com/r/thaldrin' },
{ name: 'homepage', source: 'https://gitdab.com/y/website' },
{ name: 'yiff', source: 'https://github.com/codepupper/yiff' }
] */
});
});
2019-11-28 19:03:30 +00:00
module.exports = portfolio;