Learn GatsbyJS by creating a tourism site -18

Image for post
Image for post
Chintami Cave, Hampi

Welcome to part-18 of the series. You can find part-17 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 i want to create a new page — Photos. It will contain most of the awesome photos, it took during my hampi vacation. All of these photos will be royalty free, so fell free to use them.

To create a new link in both Navbar and footer component, we just need to add it in links.js file.

Image for post
Image for post
links.js

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

Image for post
Image for post

Now, when we go to our Photos page in the browser we get all the five photos.

Image for post
Image for post
All photos

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

You can find part-19 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