adding support for projects
This commit is contained in:
@@ -59,6 +59,24 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
use: '@gridsome/source-filesystem',
|
||||
options: {
|
||||
typeName: 'Project',
|
||||
path: './content/project/**/*.md',
|
||||
templates: {
|
||||
Project: '/project/:id'
|
||||
},
|
||||
refs: {
|
||||
author: 'Person',
|
||||
tags: {
|
||||
typeName: 'Tag',
|
||||
create: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
transformers: {
|
||||
@@ -85,5 +103,9 @@ module.exports = {
|
||||
path: '/tags/:id',
|
||||
component: '~/templates/Tag.vue'
|
||||
}],
|
||||
Project: [{
|
||||
path: '/project/:id',
|
||||
component: '~/templates/Project.vue'
|
||||
}],
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user