Skip to content

Managing blog and content #159

Answered by dlarroder
Twambilile asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Twambilile, you can manage the blog data in the data/blog directory, if you want to add a new blog entry, you can just create a new mdx file and add the required fields like:

After adding a new mdx file, you'll automatically have a new page in the /blog page with it, in this case it's https://www.dalelarroder.com/blog/why-does-react-need-keys

When deleting, it's the same, if you delete the why-does-react-need-keys.mdx file, it will automatically delete it from the site.

Hope this helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Twambilile
Comment options

Answer selected by dlarroder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants