Merge branch 'master' of https://gitdab.com/y/website
This commit is contained in:
commit
710d0129e4
2 changed files with 3 additions and 15 deletions
|
@ -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;
|
||||
|
|
|
@ -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 },
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue