Learn GatsbyJS by creating a tourism site -7

Nabendu Biswas
2 min readDec 7, 2019

Welcome to part-7 of the series. You can find part-6 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 optimizing the background images in our site. Right now we have only one big background image in the home page. For this we will use the gatsby-background-image plugin. The doc for the same is here.

So, let’s stop our gatsby develop and npm install the plugin.

npm install

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

And our Blog page looks like below in browser.

Blog page

This completes part-7 of the series. You can find the code for the same in this link.

As i pushed my code to github, it also did an automatic deployment to netlify which we did in part-5.

So, you can also find the updated site on https://amazinghampi.netlify.com/

You can find part-8 here.

--

--

Nabendu Biswas

Architect, ReactJS & Ecosystem Expert, Youtuber, Blogger