Jekyll Cheat Sheet

Some tips and tricks for getting the most out of Jekyll blog posts. I published this post because it helps our team to have access to this cheat sheet rather than scouring several sources on the old internets.

jekyll-3.6.2
Please note that I'm using plain-old Jekyll-3.6.2 with little to no alterations to the default configuration.

Thanks To…

Fizer Khan’s Blog Post

and the Jekyll documentation

Command Line serve Flags

$ jekyll serve                                # serve up the development version of the site
$ jekyll s                                    # serve up the development version of the site SHORTHAND
$ jekyll s --future                           # serve up the site with post-dated blog articles
$ jekyll s --unpublished                      # serve up the site with unpublished articles
$ jekyll s --drafts                           # serve up the site including draft posts from _drafts folder
Remember that a post in the _posts directory will not be compiled if its file name is missing the yyyy-mm-dd prefix.

A post is considered in the future if it lives in the _posts directory and has in its front matter the date set to some time in the future.

A post is considered unpublished if it lives in the _posts directory and has in its front matter the published: false flag.

A post is considered a draft if it lives in the _drafts directory and does NOT include a date in it’s file name.