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');
|
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;
|
||||||
|
|
|
@ -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 },
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue