website/routes/portfolio.js

32 lines
874 B
JavaScript

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,
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' }
]
});
});
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' }
] */
});
});
module.exports = portfolio;