Commit 0be8115a authored by Yashu Mittal's avatar Yashu Mittal 👍🏻

Create author and tag references

parent 999c82ff
// This is where project configuration and installed plugin options are located.
// Learn more: https://gridsome.org/docs/config
module.exports = {
siteName: 'Gridsome Casper',
siteUrl: 'https://www.gridsome.org',
siteDescription: 'The professional publishing platform',
titleTemplate: `%s - Gridsome`,
plugins: [
{
siteName: 'Gridsome Casper',
siteUrl: 'https://www.gridsome.org',
siteDescription: 'The professional publishing platform',
titleTemplate: `%s - Gridsome`,
plugins: [
{
use: '@gridsome/source-filesystem',
options: {
path: 'blog/*.md',
typeName: 'Post',
route: '/:slug',
refs: {
author: 'Author',
tags: {
typeName: 'Tag',
route: '/tag/:title',
create: true
}
}
}
},
{
use: '@gridsome/source-filesystem',
options: {
path: 'data/author/*.md',
typeName: 'Author',
route: '/author/:id'
}
}
]
}
\ No newline at end of file
]
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment