Every now and then a new version of Jekyll is released. How do you go about to update to that version?
I found information in the Jekyll docs about it. This post covers minor updates. There is information about major versions in the link above as well. This might break your site so make sure to take actions so you won’t lose anything.
Minor version update
I needed to upgrade from 3.5.2 to the currently latest version which is 3.8.0. According to the docs i could open up a terminal and run:
Most of the dependencies seemed to update when I ran this command. However this message was added just before the update was done:
After a quick Google session ashmaroli told me how to fix it.
Update version in Gemfile
Ashmarolis solution was to open up the Gemfile and change the line
gem "jekyll", "3.5.2" to the version you want (3.8.0 for me).
This worked for me. However i couldn’t run
bundle exec jekyll serve after. This was because a plugin had updated its syntax. Maybe this was why Jekyll wouldn’t update on the first try? For those interested it was jekyll-assets.