How To Remove the Minima Theme from Jekyll

Posted in Tutorial tagged with jekyll Fri 9 Feb 2024 8:31 am

Jekyll is a fantastic static site generator and I have recently implemented it to generate this site. While I was perfectly happy with my previous CMS, I enjoyed the idea of writing blog posts in markdown on my laptop locally and pushing content via an rsync command.

When creating Jekyll with the default command, the Minima theme will also be installed. Minima is a great theme and contains features to add author data, social icons and analytics snippets, but if you’ve already got a design like my site had, installing the Minima theme will add extra code that might get in the way of developing your own design.

To remove the theme, delete the theme entry from your _config.yml file and then remove the minima gem from your Gemfile, which should look something like this:

# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.5"

Next, update the gems with bundle:

$ bundle install

The default about.markdown file will contain some info about Minima but you can tidy that up in no time.

Another option is to read the docs in the first place and not install Minima at all, which we can do by using the blank option:

$ jekyll new site-dir/ --blank

Jekyll is an very well established static site generator at this point, but I hope to share more about it soon.

Sloppily typed by Nick Pyett