Reader small image

You're reading from  Bootstrap 4 Cookbook

Product typeBook
Published inJun 2017
Reading LevelBeginner
PublisherPackt
ISBN-139781785889295
Edition1st Edition
Languages
Right arrow
Author (1)
Ajdin Imsirovic
Ajdin Imsirovic
author image
Ajdin Imsirovic

Ajdin Imsirovic is a full-stack web developer who has published several courses on the subject of web design and web development. He has also authored three books, Bootstrap 4 Cookbook, Elm Web Development, and Vue.js Quick Start Guide. In his fourth book, Vue CLI 3 Quick Start Guide, he introduces readers to the rich ecosystem of frontend tooling and best practices.
Read more about Ajdin Imsirovic

Right arrow

Making Jekyll blog-aware


In this recipe, we will make Jekyll blog-aware. To do this, we need to set up our posts. The way that Jekyll works is, it allows us to add posts inside a partial folder titled _posts. This folder was automatically created for us when we ran the jekyll new command.

Next, we need to create our files, using either the markdown or the HTML file extension. While markdown can be described as a simplified HTML format, one wonderful thing about using it is that the code inside can be HTML, at least in Jekyll. Jekyll will compile markdown files that have HTML inside of them without issues. That is why we will be using markdown files for our posts.

Jekyll posts also need to follow another convention--a naming convention. This naming convention is what allows Jekyll to be blog-aware. Each post in Jekyll needs to have the YYYY-MM-DD-title-of-post.markdown structure. Alternatively, you can use YYYY-MM-DD-title-of-post.html, but as already explained, we will use the first option...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Bootstrap 4 Cookbook
Published in: Jun 2017Publisher: PacktISBN-13: 9781785889295

Author (1)

author image
Ajdin Imsirovic

Ajdin Imsirovic is a full-stack web developer who has published several courses on the subject of web design and web development. He has also authored three books, Bootstrap 4 Cookbook, Elm Web Development, and Vue.js Quick Start Guide. In his fourth book, Vue CLI 3 Quick Start Guide, he introduces readers to the rich ecosystem of frontend tooling and best practices.
Read more about Ajdin Imsirovic