Ruby jekyll usage
From wikinotes
Create a new Blog
cd ~/progs/web/projects # navigate to the dir you want to create blog in jekyll new blog # create a new jekyll blog cd blog jekyll serve -w # host jekyll (by default at 127.0.0.1:4000), and watch for file changes
Create a Post
Posts are created in the
_drafts
directory. A post's name must use valid-URL characters (no spaces), and use the extension of your desired markup language.touch _drafts/firstpost.textile # your first post file jekyll serve -w --drafts # start webserver, rendering files in the _drafts/ folder--- layout: post title: "My Awesome Title" categories: apples oranges bananas --- # Category 1 From this point on, it's just plain old markdown. * itemA * itemB * itemC
Previewing Drafts
bundle exec jekyll serve -w --drafts
Publishing Drafts
jekyll build # builds in ./_site jekyll build --watch # run in bg, rebuild on changes