Learn GatsbyJS by creating a tourism site -14

Welcome to part-14 of the series. You can find part-13 here.

As told in the earlier post, this series is based on the learning from this awesome udemy course by John Smilga

In this part we will start my creating a new Content Model, for blog in our site. So, head over to the Contentful dashboard and click on Add content type in Content model.

Image for post
Image for post
Contentful

Rest of the chapter is exclusive content and will be in my upcoming book Gatsby Cookbook.

Image for post
Image for post

I have also added the required image in all posts. After that too get access to these new post, we need to restart the server. So, go ahead and stop gatsby develop from terminal and re-run it.

Also, refresh the graphql in browser and write the below query to display all posts.

Image for post
Image for post
Our query

This completes part-14 of the series.

You can find part-15 here.

Written by

UI Lead- ReactJS, JavaScript and everything in-between.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store