back to all posts

Learn GatsbyJS by creating a tourism site -7

by Nabendu Biswas / December 7th, 2019

#gatsby #react #javascript
Series: Gatsby-tourism

Welcome to part-7 of the series. 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 installnpm install

Rest of the chapter is exclusive content and is from my book Foundation Gatsby Projects.

The book can be purchased from Apress site here

Foundation Gatsby Projects

And our Blog page looks like below in browser.

Blog pageBlog 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/

Nabendu Biswas