Coding the blog home page
Now that you have a good grasp of how to use the Bootstrap 4 grid, we're going to code up our blog home page. This page will include a feed of posts, a sidebar, and a newsletter sign-up form section at the bottom of the page. Let's start by taking the code we wrote in
Chapter 2
, Using Bootstrap Build Tools for our hello world!
template and duplicating the entire directory. Rename the folder Chapter 4: Working with Layouts
or Bootstrap Layout
.
Note
Remember, we are using the regular grid moving forward, not the Flexbox grid. Make sure you are using the default build of bootstrap.min.css
. If you carry out a simple duplication of the second chapter's code then you'll have the right file configuration.
Writing the index.ejs template
Good news! Since we set up our Harp project in Chapter 2 , Using Bootstrap Build Tools, we can reuse a bunch of that code now for our blog home page. There's no need to make any updates to the JSON files and header or footer partials. The...