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.
This guide provides instructions for setting up and running a Jekyll site with the Minimal Mistakes theme locally on macOS, including how to implement collapsible sidebar navigation.
-
Install Ruby (using Homebrew is recommended):
brew install ruby
-
Add Ruby to your PATH in
.zshrc
or.bash_profile
:export PATH="/usr/local/opt/ruby/bin:$PATH"
-
Install Bundler:
gem install bundler
-
Create a new directory for your site (or navigate to your existing site)
-
Create or update your
Gemfile
to include Jekyll and Minimal Mistakes:source "https://rubygems.org" gem "jekyll" gem "minimal-mistakes-jekyll" gem "jekyll-include-cache", group: :jekyll_plugins
-
If you're using Ruby 3.0.0+, add webrick to your dependencies:
bundle add webrick
-
Create or update
_config.yml
to use the theme:remote_theme: "mmistakes/minimal-mistakes" # OR # theme: "minimal-mistakes-jekyll" plugins: - jekyll-include-cache
-
Install all dependencies:
bundle install
-
Run the local server:
bundle exec jekyll serve
-
View your site at
http://localhost:4000
-
Use the
--watch
flag to automatically regenerate the site when files change:bundle exec jekyll serve --watch
Remember that if you make changes to _config.yml
, you'll need to restart the Jekyll server for those changes to take effect.