#203 redesign header - fix

This commit is contained in:
Avris 2021-05-13 17:05:45 +02:00
parent 3341fc08d4
commit 89ac801f84
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ export default {
if (config.links.academicRoute) {
routes.push({ path: '/' + config.links.academicRoute, component: resolve(__dirname, 'routes/academic.vue') });
}
if (Object.keys(config.links.blog).length) {
if (config.links.blog && Object.keys(config.links.blog).length) {
routes.push({ path: '/' + config.links.blogRoute, component: resolve(__dirname, 'routes/blog.vue'), name: 'blog' });
routes.push({ path: '/' + config.links.blogRoute + '/:slug', component: resolve(__dirname, 'routes/blogEntry.vue'), name: 'blogEntry' });
}