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.
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
_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.