This commit is contained in:
monty 2020-01-13 10:53:15 +00:00
commit 710d0129e4
2 changed files with 3 additions and 15 deletions

View file

@ -3,19 +3,7 @@ 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: {
code: [
{ name: 'thaldrin', source: '/p/thaldrin' },
{ name: 'kaito', source: '/p/kaito' },
{ name: 'website', source: '/p/website' },
{ name: 'yiff', source: '/p/yiff' }
]
}
});
res.redirect('https://shyzu.link')
});
module.exports = portfolio;

View file

@ -62,9 +62,9 @@ app.use(
);
app.use('/portfolio', require('./routes/portfolio'));
app.use('/p', require('./routes/p'));
app.use('/lore', require('./routes/lore'));
app.use('/art', require('./routes/art'));
app.use('/p', require('./routes/p'));
module.exports = (client) => {
app.get('/', async (req, res) => {
@ -74,7 +74,7 @@ module.exports = (client) => {
layout: 'main',
name: con.name,
host: req.hostname,
item: [ { name: 'portfolio', source: '/portfolio' } ],
item: [ { name: 'portfolio', source: 'https://shyzu.link' } ],
social: [
{ name: 'Twitter', color: '1DA1F2', link: 'twitter.com/codepupper', icon: simpleIcons.Twitter },
{