gridsome / gridsome/gridsome

[Question] Create tags that don't exist with source-filesystem plugin

Open
#613 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8.5k
Forks
466
PR merge metrics
No merged PRs in 30d

Description

Right now, in my `gridsome.config.js` I have the following plugin:

```javascript
{
use: '@gridsome/source-filesystem',
options: {
typeName: 'Post',
path: 'content/posts/**/*.md',
route: '/post/:id',
refs: {
tags: {
typeName: 'Tag',
route: '/tag/:title',
create: true,
},
},
},
},
```

This way, all tag entities will be created automatically. However, I want to add extra metadata to some of the tags using a custom .md file with the metadata and content for that tag, but I still want to have the rest of the tags created automatically. How would I go about this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.