From the course: Learning Static Site Building with Jekyll

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Edit front matter content

Edit front matter content

From the course: Learning Static Site Building with Jekyll

Start my 1-month free trial

Edit front matter content

- [Instructor] The section at the top of each post file is called the front matter. This section stores metadata or properties about the post. You can change or add to these properties to change things about the post. For example, I could add a exclamation point to the title or I could change the date to backdate the post for example. The Jekyll documentation at jekyllrb.com includes a list of all the front matter properties you can add and what they do. For blogs it can useful to add categories and tags to posts. I might add a category here called personal and maybe a tag called fun. The tags and categories you use on your own site would just depend on your content. If I preview this site, bundle exec jekyll serve and take a look at what it looks like now. The order of posts has changed because I backdated that post and if I open my hello world post, the title has changed and if you look closely at the url the category's now included in the url as well. This means that categories can…

Contents