Learn GatsbyJS by creating a tourism site -16

Welcome to part-16 of the series. You can find part-15 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 show the blog pages, when a user clicks on it. For this we will follow the same template approach, which we followed in tour.

So, create a file blog-template.js inside templates folder. And for now put a dummy data, which we are going to replace soon.

Image for post
Image for post
blog-template.js

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

Image for post
Image for post

Now, start your gatsby develop from the terminal and head over to a blog post after that. You can see the markdown rendered successfully.

Image for post
Image for post
awesome hampi

This completes part-16 of the series. You can find the code for the same here.

Also, because of the continuous deployment it got successfully pushed to netlify site.

You can find part-17 here.

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