adding support for projects

This commit is contained in:
hamdy
2020-11-09 23:44:15 +02:00
parent 76f35389c2
commit 790c32dce7
5 changed files with 336 additions and 0 deletions

View File

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