Jekyll Theme Usage - How to Find and Change Themes
Jekyll themes control the look and feel of your website. This guide explains how to locate theme files and customize your Jekyll site’s appearance.
Finding Theme Files
When you want to customize a theme, you first need to find where the theme files are located.
Locate the theme directory
bundle info --path minima
This command shows the path to the theme files. You can copy files from this directory to your project to override them.
Changing Themes
Method 1: Change in _config.yml
Edit your _config.yml file to change the theme:
theme: minima
For remote themes (from GitHub):
remote_theme: owner/repository
Method 2: Install a New Gem Theme
- Add the theme to your
Gemfile:gem "jekyll-theme-minimal" - Run bundle install:
bundle install - Update
_config.yml:theme: jekyll-theme-minimal
Popular Jekyll Themes
- Minima: Default Jekyll theme, clean and simple
- Minimal Mistakes: Feature-rich, great for blogs and portfolios
- Just the Docs: Perfect for documentation sites
- Chirpy: Modern blog theme with dark mode
Customizing Theme Layouts
To override a theme file:
- Find the original file path using
bundle info --path - Create the same directory structure in your project
- Copy and modify the file
For example, to customize the header:
mkdir -p _includes
cp $(bundle info --path minima)/_includes/header.html _includes/
Comments