Themes package layouts, includes, and stylesheets in a way that can be
overridden by your site's content. A theme contributes its _layouts,
_includes, _sass, and assets directories to your site's build.
Jigyll supports two separate theme mechanisms:
themeselects a local_theme/<name>directory or a Bundler theme.remote_themedownloads a pinned GitHub theme source archive.
Do not configure both keys. A build with both fails with:
_config.yml cannot specify both theme and remote_theme
Local themes
Activate a local or Bundler theme with the theme key in _config.yml:
theme: minima
Differs from Jekyll. There is no gem installation step. Jigyll resolves
themein two ways, in order:
A local
_themefolder — if<source>/_theme/<theme-name>/exists, it is used. This is the Jigyll-native way to vendor a theme: copy (or submodule) the theme's files there.Bundler fallback — otherwise, if
bundleis on yourPATH, Jigyll runsbundle show <theme-name>and uses the gem's directory. This lets an existing Jekyll project with aGemfilekeep working, but it requires a Ruby toolchain.If neither works, the build fails with an error.
Installing a local theme
For example, install Minima as a local theme:
mkdir -p _theme
git clone https://github.com/jekyll/minima.git _theme/minima
Then set theme: minima in your site's _config.yml.
Scaffolding from a repository reference
Install and select a theme from a tagged release without Git:
jigyll new my-docs --theme owner/docifly@v1.2.3
jigyll new my-docs --theme https://src.r2ware.dev/owner/project@v1.2.3
These owner/repository/tag values illustrate syntax, not available releases.
owner/repository@version defaults to GitHub; Forgejo requires an explicit
instance URL. Use an exact release tag such as v1.2.3, or latest for the
provider's latest published release.
You can also use a full 40-character hexadecimal commit SHA:
jigyll new my-docs --theme owner/docifly@FULL_COMMIT_SHA
Replace FULL_COMMIT_SHA with the full hexadecimal commit.
Jigyll resolves a commit, downloads its .tar.gz source archive internally,
and installs _theme/<repository-name>/, without a version/SHA wrapper or
Git metadata. It writes theme: <repository-name> to the new configuration.
The theme must supply a regular _layouts/default.html; the scaffold does
not override it. No separate name, checksum, or arbitrary archive URL is
required or accepted. See Start a new site for destination
safety and archive requirements.
The adjacent _theme/<repository-name>.source.json records the source,
repository URL, resolved tag when applicable, resolved commit, archive URL,
and observed SHA-256. Tags and latest are mutable. Reinstall the recorded
source revision in a new destination with
owner/repository@FULL_COMMIT_SHA (or the explicit Forgejo URL with that
commit). The digest records downloaded bytes, not a trusted expected-checksum
verification or publisher authentication; future provider-generated archives
of the same commit need not be byte-identical.
Installed themes use the ordinary local theme lookup above, not the
remote_theme cache. Builds need neither Git nor a network connection.
Precompiled assets also avoid Node, npm, and Sass; themes requiring Sass
compilation still need their compiler.
Scaffolding from a Git URL
The existing Git URL installer is separate:
jigyll new my-site --theme GIT_URL
It clones into _theme/<theme-name>/ and selects theme: <theme-name>.
The URL must resolve to a safe theme directory name and the repository must
provide _layouts/default.html. Git is required for this legacy installer
only, not for builds consuming an installed local theme.
GitHub theme releases
Install a tagged release when creating a site:
jigyll new my-docs --theme owner/docifly@v1.2.3
Replace owner/docifly and v1.2.3 with the theme repository and release
tag. Jigyll installs the release in _theme/docifly/ and sets
theme: docifly in _config.yml. Builds then use those local files without
a network connection. You can also replace the tag with a full
40-character hexadecimal commit SHA.
SHA-pinned remote themes
Alternatively, configure remote_theme with an immutable GitHub commit:
remote_theme: just-the-docs/just-the-docs@394d6c0ec33852f8e593145d21344a955e908acb
The exact accepted syntax is owner/repository@<40-character-hex-SHA>.
Branches, tags, shortened SHAs, omitted revisions, URLs, and non-GitHub hosts
are intentionally unsupported. Jigyll constructs the archive request itself
for https://codeload.github.com; configuration cannot choose another host.
The first build downloads and validates the archive, so it requires network
access. Validated themes are cached at
<user-cache-dir>/jigyll/themes/<sha256-normalized-spec>/ ($XDG_CACHE_HOME
on Linux). Subsequent builds use that immutable cache entry without Git,
submodule checkout, or another download.
What a theme provides
Jigyll reads these directories from the theme, with your site's own files always taking precedence:
_layouts— a page'slayoutis looked up in your site's_layoutsfirst, then the theme's._includes—{% include %}searches your site's_includesfirst, then the theme's._sass— the theme's partials are on the Sass load path; a same-named partial in your site's_sasswins.assets— theme assets are output unless your site has a file at the same path.
Differs from Jekyll. A theme's
_datadirectory (Jekyll 4.3+) and a theme-bundled_config.yml(Jekyll 4.0+) are ignored, the theme's gemspecruntime_dependenciesare not auto-loaded as plugins (list the emulated plugins you need explicitly), and there are notheme.*Liquid variables.
Overriding theme defaults
To replace layouts or includes in your theme, make a copy in your
_layouts or _includes directory of the specific file you wish to
modify, or create the file from scratch giving it the same name as the file
you wish to override.
For example, if your selected theme has a page layout, you can override
the theme's layout by creating your own page layout in the _layouts
directory (that is, _layouts/page.html).
To modify a stylesheet, also copy the theme's main Sass file into the
_sass directory in your site's source. Your theme's styles can be
included in your stylesheet using the @import directive:
@import "theme-partial";
Creating themes
Jekyll's jekyll new-theme scaffolding and RubyGems publishing workflow
don't apply to Jigyll. A Jigyll theme is just a directory with _layouts,
_includes, _sass, and assets folders — anything that follows that
shape (including any existing Jekyll theme's source) can be dropped into
_theme/<name>/ and used directly.