Notice we are not rendering the post body yet. This slug comes from the context object of the gatsby-node.js file. In the query, we are using the contentfulBlogPost to fetch the individual post based on the slug that is dynamically passed in. You should see your single post rendered in the frontend. Save all your files and restart the development server. Here, we will be installing the official default starter.Ĭopy siteMetadata : export default BlogPost Just like every other Gatsby site, we will start by installing a Gatsby starter. You’ll also learn how to source Gatsby markdown content from the filesystem.įor those of us that are conversant with Gatsby, let’s get started. There, you will learn the fundamentals of Gatsby and GraphQL. If you are not familiar with GatsbyJS, consider reading this step by step guide to creating a Gatsby site. In this tutorial, you’ll learn how to set up Gatsby with Contentful CMS (Content Management System) and deploy on Netlify for free.Īt the end of this tutorial, you will be able to create this Gatsby blog site. I'm wondering if I should try use the long text component with Markdown instead. However, this Rich Text rendering thing is a nightmare. But, as a developer, you’d also want to consider those that would be managing their Gatsby blog content from the admin interface. I've been using Contentful as a source for something like three months straight for it's ability to be molded and customized to the project. This is not bad for someone technical and enjoys working with the markdown syntax. If you have been working with a Gatsby blog site, you’d most likely know how to source markdown files from the filesystem.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |