restructuring

This commit is contained in:
hamdy
2020-11-09 16:44:20 +02:00
parent 6b18d34f98
commit 06686d275a
33 changed files with 180 additions and 191 deletions

View File

@@ -33,8 +33,8 @@ module.exports = {
{
use: '@gridsome/source-filesystem',
options: {
typeName: 'Author',
path: './content/author/*.md',
typeName: 'Person',
path: './content/person/**/*.md',
refs: {
tags: {
typeName: 'Tag',
@@ -52,7 +52,7 @@ module.exports = {
BlogPost: '/blog/:id'
},
refs: {
author: 'Author',
author: 'Person',
tags: {
typeName: 'Tag',
create: true
@@ -77,9 +77,9 @@ module.exports = {
Blog: [{
path: '/blog/:id'
}],
Author: [{
Person: [{
path: '/author/:id',
component: '~/templates/Author.vue'
component: '~/templates/Person.vue'
}],
Tag: [{
path: '/tags/:id',