O'Reilly logo

Bootstrap 4 Site Blueprints by Ian Whitley, David Cochran, Bass Jobsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Styling the blog posts

Your page can contain a list of blog posts, each post starting with a relevant photo. In the example we'll show only one blog post. The blog post may look like that shown in the following screenshot:

Styling the blog posts

The HTML code for each blog post, saved in the html/pages/index.html file, will look like the following:

 <article> <img src="{{root}}images/blog1.png" class="img-fluid"> <div class="blog-post"> <header><h1>Blog post 1</h1><time>16:00:00 01/01/2018</time></header> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required