I am an Engineer based in Pune, India. These are some of my DIY & IoT projects.
This post shows you how to switch the Jekyll theme on your existing GitHub Pages site
docs sub-folder in your checked out repo (is lithiumhead.github.io/docs/ in my case)._config.yml for editing. Look for theme: minima and change it to theme: jekyll-theme-modernist and save the file.bundle update while still in the docs sub-folder.
This will download all the themes supported by GitHub pages locally to your computer.bundle exec jekyll serve. You will get a build warning saying that the layouts for the types page, post and home are not known.home layout files from the (_layouts)[https://jekyll.github.io/minima/tree/master/_layouts] folder of the minima theme:
docs sub-folder, issue mkdir _layoutscd _layoutswget https://github.com/jekyll/minima/raw/master/_layouts/home.htmlpost and page layout, let’s just duplicate the default layout of the modernist theme, we can customize them later:
wget https://github.com/pages-themes/modernist/raw/master/_layouts/default.html -O post.htmlwget https://github.com/pages-themes/modernist/raw/master/_layouts/default.html -O page.html---
layout: base
---
to
---
layout: default
---
and save.
docs : cd ..bundle exec jekyll servePost Categories: jekyll-howtos