Closed gardner closed 2 years ago
If you found this issue then please take note:
You must set these values in your gatsby-config.js
:
contentDir: './content',
assetDir: './assets',
Markdown files go in your content directory. Markdown files must have a cover photo. The cover photo for the following markdown file would be in ./content/images/
---
title: "gardner"
cover: images/gardner.jpg
coverAlt: "gardner"
path: /gardner
description: "Description"
datePublished: "2022-07-23"
dateModified: "2022-07-23"
category: "tech"
tags:
- programming
- stuff
- other
---
## gardner
gardner
Summary
Please excuse the naivety of this question. I have been trying to understand how to modify the content. The "posts" appear to be sourced from
mdx
files in the npm module. I'd like to replace the posts with my own data.Adding
mdx
files in key locations results in files that don't include the default layout.I tried setting the variables in
gatsby-config.js
This results in an error
Field "cover" must not have a selection since type "String" has no subfields.
How are
.md
and.mdx
files meant to be added to the starter?File contents (if changed)
gatsby-config.js
: N/ATrying to find the data to change: