If you haven't installed Jekyll yet, run the following command (ensure you have Ruby installed):
gem install jekyll bundler
Go to the directory where your Jekyll site is located:
cd /path/to/your-jekyll-site
If your project has a Gemfile
, install the required dependencies:
bundle install
Run the following command to build and preview the site locally:
bundle exec jekyll serve
or (if you installed Jekyll globally without Bundler):
jekyll serve
Once the server starts, open your browser and go to:
http://127.0.0.1:4000
By default, Jekyll serves on port 4000
, but you can specify another port if needed:
bundle exec jekyll serve --port 5000
To automatically refresh the page when you edit files:
bundle exec jekyll serve --livereload
Click Use this template button above for the quickest method of getting started with the Minimal Mistakes Jekyll theme.
Contains basic configuration to get you a site with:
- Sample posts.
- Sample top navigation.
- Sample author sidebar with social links.
- Sample footer links.
- Paginated home page.
- Archive pages for posts grouped by year, category, and tag.
- Sample about page.
- Sample 404 page.
- Site wide search.
Replace sample content with your own and configure as necessary.
If you have a question about using Jekyll, start a discussion on the Jekyll Forum or StackOverflow. Other resources:
- Ruby 101
- Setting up a Jekyll site with GitHub Pages
- Configuring GitHub Metadata to work properly when developing locally and avoid
No GitHub API authentication could be found. Some fields may be missing or have incorrect data.
warnings.