A barebones theme for Jekyll, which doesn't need any dependencies except jekyll-redirect-from
, if you want to redirect pages without any web server configuration. It is optimized for fast build speeds as well.
Its purpose is to be a minimalist, single-author theme. Because there is no menu, pages can be manually linked in the body of index.md
.
It also changes as little as possible from the default browser settings to improve legibility.
If this theme feels to bloated to you, you can try “Nixer”, the ultra-minimalist version of “Nix”.
I wrote up what inspired me to create both themes.
The default colors are the colors of the respective browsers, both in light and in dark mode.
/assets/icons/icon.webp
is the favicon for the light mode, and there's also a dark variant /assets/icons/icon-dark.webp
for dark mode. They will be used automatically or you can replace them by creating new ones in the same location.
“Nix” is the grammatically incorrect form of the German “nichts”, which in English means “nothing”. It's colloquially used to stress the nothingness.
Or, if you will, it could be UNIX without the “U”, because of the theme's somewhat archaic properties.
Installation from Gem is recommended, but using a remote theme is also possible, even though it will increase build times a little, depending on your internet connection and the size of the theme download, because it will be downloaded during each build. Gems are installed locally.
GitHub Pages gem users need to use the remote theme method.
Add this line to your Jekyll site's Gemfile
:
gem "jekyll-theme-nix", group: [:jekyll_plugins]
Then run bundle
in your terminal.
bundle
Also add the theme to your Jekyll site's _config.yml
:
theme: jekyll-theme-nix
Make sure that this is the only theme:
in _config.yml
, and that there are no other remote-theme:
.
Add this line to your Jekyll site's Gemfile
:
gem "jekyll-remote-theme", group: [:jekyll_plugins]
Then run bundle
in your terminal.
bundle
Finally add the remote theme to your Jekyll site's _config.yml
:
remote_theme: michaelnordmeyer/jekyll-theme-nix
Make sure that this is the only remote_theme:
in _config.yml
, and that there are no other theme:
.
Both are included in the demo. For a standard Jekyll installation, they work out-of-the-box if the files feed.xslt.xml
and sitemap.xsl
are copied to the site’s Jekyll directory.
The XSLT files style the XML files. If a user selects the link to the feed, a styled version of the feed will be shown in the browser with an explainer of what web feeds are.
Because feeds are generated once, they can only support one icon. The light variant was chosen for the feed.