automatic markdwon page creation
This commit is contained in:
@@ -55,6 +55,13 @@ module.exports = {
|
||||
path: 'content/site/*.json'
|
||||
}
|
||||
},
|
||||
{
|
||||
use: '@gridsome/source-filesystem',
|
||||
options: {
|
||||
typeName: 'MarkdownPage',
|
||||
path: './content/page/**/*.md',
|
||||
}
|
||||
},
|
||||
{
|
||||
use: '@gridsome/source-filesystem',
|
||||
options: {
|
||||
@@ -143,5 +150,9 @@ module.exports = {
|
||||
path: '/project/:id',
|
||||
component: '~/templates/Project.vue'
|
||||
}],
|
||||
MarkdownPage: [{
|
||||
path: '/page/:id',
|
||||
component: '~/templates/MarkdownPage.vue'
|
||||
}],
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user