back to all posts

My Coding Blog From Scratch Using Gatsby and MDX - 28

by Nabendu Biswas / April 18th, 2020

#gatsby #react #javascript
Series: Gatsby-mdx

Welcome to part-28 of the series. In this part i will start with adding the logic to show current count of total blogs, next to search bar. We will also update the count, if someone searches in search bar.

Open the index.js file and add a variable postCount, which will get the total count of posts. After that add a new state variable filteredCount.


Rest of the chapter is exclusive content and will be in my upcoming book Gatsby Cookbook. You can find more details about it here.

Gatsby Cookbook

It’s time to push the code to github for the automatic deployment in netlify. And our site is live after the deployment.

Site LiveSite Live

This completes part-28 of the series.

You can find the code for the same in this github repo.

The book is currently 80% complete and available on leanpub to purchase at this url. So, please show your support and purchase the book or tell it to someone who is interested in developing blazing fast production websites in GatsbyJS.


Nabendu Biswas