Running this website
Vincent Thorne · Posted 16 Jun 2021
How to create and maintain my personal website built with Jekyll and hosted on GitHub Pages.
Create the website
A thorough guide is available in the GitHub docs. Since I first built the website things have changed quite a bit, and I also mostly forgot how I did it (surely my developer friend was key to this step).
Running locally and maintaining
The website is made out of ruby Gems. The way to keep Gems’ dependencies correct and compatible with one another is to use Bundler. Thus, most of the operations should be done through Bundler.
cd /Users/vinceth/Documents/GitHub/vronizor.github.io
bundle exec jekyll serve
to serve the website locally- if it doesn’t work, you might have to update the Gems: run
bundle update
andbundle install
. Try to serve locally again. - if it doesn’t work, start from scratch:
- Run
gem env
and make sure the correct Ruby version is in your~/.zshrc
. Restart the terminal. - Delete the Gemfiles
- Initialize a new Gemfile
bundle init
- Add GitHub pages:
bundle add github-pages
andbundle install
everything - Add whatever it complains about when trying
bundle exec jekyll serve
-
2021-06-18: I had to
bundle add webrick
,bundle add rake
and write the following to the Gemfile:*# If you have any plugins, put them here! group :jekyll_plugins do gem "jekyll-feed" gem "jekyll-remote-theme" end*
-
- Run
- Make your changes and then push them all to GitHub.
- Web-search whatever problems you have left until your head explodes and you beg your developer friend to please help you.
- if it doesn’t work, you might have to update the Gems: run
It’s important to update the bundle regularly or GitHub and its Dependabot will complain about security issues. These complaints are annoying and you want to avoid them at all costs, even if that means pulling your hair over Jekyll and Gems every now and then.
Alternatives to Jekyll
Hugo is another very popular (and possibly more user-friendly?) static website generator. For now I’m sticking to Jekyll because I like the theme I am using, Just the Docs, which gives more of a “traditional” website structure than many other themes I’ve seen.