Fixed index page for static page and simple routing issue.
This commit is contained in:
parent
1671d19134
commit
d7621aa1d1
2 changed files with 22 additions and 25 deletions
|
@ -12,7 +12,7 @@ export default {
|
|||
let postRoutes = listOfPosts
|
||||
.map(it => it.slug)
|
||||
.map((slug) => {
|
||||
return '/post/' + slug;
|
||||
return '/blog/post/' + slug;
|
||||
});
|
||||
|
||||
return postRoutes;
|
||||
|
@ -24,7 +24,7 @@ export default {
|
|||
|
||||
// Global page headers: https://go.nuxtjs.dev/config-head
|
||||
head: {
|
||||
title: 'nuxt_demo1',
|
||||
title: 'Tomasz Półgrabia\'s BLog',
|
||||
htmlAttrs: {
|
||||
lang: 'en'
|
||||
},
|
||||
|
@ -60,6 +60,11 @@ export default {
|
|||
config.node = {
|
||||
fs: 'empty'
|
||||
};
|
||||
|
||||
// disable for production
|
||||
config.devtool = 'source-map';
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
ssr: true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue