Install Jekyll and Bundler:
gem install jekyll bundler
A comprehensive cheat sheet covering Jekyll, a static site generator. Includes setup, directory structure, front matter, templating, and more, designed for quick reference.
Install Jekyll and Bundler:
|
Create a new Jekyll site:
|
Serve the Jekyll site locally:
|
For GitHub Pages compatibility, use this Gemfile:
|
Update gems:
|
|
Basic syntax:
|
Common front matter variables:
|
Other front matter examples:
|
Basic configuration file example:
|
Key configuration options:
|
More configuration options:
|
Accessing page variables in templates:
|
Common page variables:
|
More examples of page variables:
|
Looping through posts:
|
Looping through data:
|
Basic conditional logic:
|
Examples:
|
Including partials:
|
Including partials with local variables:
|
Formatting dates:
|
Common date filters:
|
String filters:
|
Common string filters:
|
Post file naming convention:
|
Image paths in posts:
|
Drafts:
|
Defining excerpts:
|
Excerpt separators:
|