COMMAND LINE TOOLS FOR JEKYLL
Run from the command line, any of the following:
INSTALL JEKYLL
gem install jekyll bundler
CREATE A GEMFILE
bundle init
ADD WEBRICK
bundle add webrick
BUNDLE, BUILD AND SERVE JEKYLL
bundle exec jekyll serve
BUILD JEKYLL
jekyll build
SERVE AND WATCH JEKYLL
jekyll serve --watch
SERVE AND FORCE LIVERELOAD
jekyll serve --livereload
TROUBLESHOOT JEKYLL
jekyll doctor
UPDATE DEPENDENCIES
bundle update
UPDATE GEMS
gem update --system
CLEAR JEKYLL CACHE
bundle exec jekyll clean --trace
JEKYLL BUILD with TRACE
bundle exec jekyll build --trace
BUILD FOR PRODUCTION
JEKYLL_ENV=production bundle exec jekyll build --trace
UPDATE JEKYLL
jekyll update
JEKYLL SERVE THEN OPEN IN BROWSER
bundle exec jekyll serve --open-url http://localhost:4000/ --trace
JEKYLL FILE HELPERS
Include the nav menu from _includes folder:
{% include nav.html %}
Display a comment:
{% comment %}
This is a comment
{% endcomment %}
Show content in page
{{ content }}
Show page url in page
{{ page.url}}
URL for local dev:
http://127.0.0.1:4000/