Learn GatsbyJS by creating a tourism site -16

Nabendu Biswas
2 min readDec 21, 2019

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.

blog-template.js

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

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

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.

--

--

Nabendu Biswas

Architect, ReactJS & Ecosystem Expert, Youtuber, Blogger