move portfolio to shyzu.link

This commit is contained in:
monty 2019-12-19 19:05:05 +01:00
parent f18820b035
commit 9898e550fb
2 changed files with 3 additions and 15 deletions

View file

@ -3,19 +3,7 @@ var portfolio = express.Router();
const con = require('../constants'); const con = require('../constants');
portfolio.get('/', (req, res) => { portfolio.get('/', (req, res) => {
res.render('portfolio', { res.redirect('https://shyzu.link')
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' }
]
}
});
}); });
module.exports = portfolio; module.exports = portfolio;

View file

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