All notes
Jekyll

Installation


bundle init
bundle exec gem install jekyll
bundle install

jekyll new myblog
# or, install in current dir, and force overriding.
jekyll new . --force

cd myblog
jekyll serve
# Now browse to http://localhost:4000

Basic Usage


jekyll build
# The current folder will be generated into ./_site
jekyll build --destination DEST
# The current folder will be generated into DEST
jekyll build --watch
# The current folder will be generated into ./_site, watched for changes, and regenerated automatically.

# Run in background and detach from terminal.
jekyll serve --detach

Destination folders are cleaned on site builds. Do not use an important location for destination; instead, use it as a staging area and copy files from there to your web server.

The _config.yml master configuration file contains global configurations and variable definitions that are read once at execution time. Changes made to _config.yml during automatic regeneration are not loaded until the next execution.