Previous Lesson: Lesson 45: Blog Template From Bootstrap

In this lesson, we’ll beautify our Blog’s NavBar together. We’ll first delete the default. And then we’ll duplicate the same NavBar we have on all pages.

It was really great to know that Bootstrap have their free templates for us to have a head start for making our portfolio’s blog page. As you can see, we don’t want to have this menu buttons at the top of our Blog page (localhost:8000/blog):

This image has an empty alt attribute; its file name is Screen-Shot-2020-03-20-at-7.15.26-AM-1024x640.png

Instead, what we want to have for our NavBar is the menu buttons here on the Projects page (localhost:8000/projects):

This image has an empty alt attribute; its file name is Screen-Shot-2020-03-19-at-4.31.42-PM-1024x640.png

Yup, we want to have that same NavBar. To do that, we’ll first delete those menu buttons from the Blog page here on our blogs.html:

DELETE:

Good. Now, let’s refresh our Blog page:

Nice. But we don’t also need those Subscribe, Large, and Sign up for our NavBar. And the code for this one will be right here::

DELETE:

Let’s see:

Neat.

Beautifying our Blog’s NavBar using the Original NavBar

Now, it’s time to place our original NavBar (that we have on the Projects page) here on our Blog page. But how do we do that? We’ll simply go here on our projects.html and copy these lines:

After copying, we then go to our blogs.html, and paste it right here:

Nice. Now let’s take a look at our Blog page:

Cool! Let’s commit this change to GitHub:

On the next lesson, we’ll match our blog posts’s titles with their corresponding browser tabs. We’ll also continue on beautify the Blog’s NavBar. See you there!

Next Lesson: Lesson 47: How to Change the Browser Tab Title

Leave a Reply

Your email address will not be published. Required fields are marked *