How it works...

There are a lot of things happening in this recipe. In steps 2 through 4, we added the posts layout. This layout in turn called the default layout, so this is a practical example of an excellent possibility in Jekyll to include layouts within layouts. Inspecting the code inside post.html, you might notice snippets of code such as this one:

{{ page.title }}

The preceding code comes from a templating language called Liquid, created by Shopify and also used by Jekyll.

To find out more about the Liquid templating language, navigate to https://shopify.github.io/liquid/. Using Liquid in Jekyll is sort of a separate skill. To find out more about Jekyll in general, visit the official website at https://jekyllrb.com/docs/home/.

Get Bootstrap 4 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.