Skip to content

Getting started with Jekyll static-site generation.

This post is in the _posts directory. The site can be rebuilt by running jekyll serve, which launches a web server and auto-regenerates your site when a file is updated. Since we're using Bundler, bundle exec jekyll serve, actually.

Jekyll requires blog post files to be named according to the following format:

YEAR-MONTH-DAY-title.MARKUP

Where YEAR is a four-digit number, MONTH and DAY are both two-digit numbers, and MARKUP is the file extension representing the format used in the file. After that, they include the necessary front matter.

Jekyll also offers powerful support for code snippets:

{% highlight ruby %} def print_hi(name) puts "Hi, #{name}" end print_hi('Tom')

=> prints 'Hi, Tom' to STDOUT.

{% endhighlight %}

See Jekyll docs for more info.