automatic markdwon page creation

This commit is contained in:
hamdy
2020-11-22 12:29:01 +02:00
parent 9d661b633f
commit d8ea099edf
3 changed files with 59 additions and 0 deletions

View File

@@ -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'
}],
}
}