In the last article, we have discussed different types of sites, static sites in particular, which Jekyll is meant for. You can read that here.
Now in this article, we will learn to setup Jekyll on a Windows system. And there is a very easy and to the point way for that!
Setting up the Ruby Environment
Jekyll basically requires the Ruby environment, so first, we will setup Ruby on Windows.
Download ruby installer from rubyinstaller.org/downloads/, be sure to download the one with Devkit. The devkit includes the required development tools that will help to build the downloaded stuff.
The installation process is simple, start the installer, accept the license, select directories and install!
Be sure to select this: (if it asks so)
It will take some time to copy files, in the end, select the install this also to install the MSYS2 development tools.
ridk installto initiate msys setup.
After doing these three options, press enter, it will automatically get closed. Congrats! You have your ruby environment installed on your windows system.
Now let’s install Jekyll. From the start menu, you can find this, Start command prompt with ruby. Run it, and enter this:
gem install jekyll
This will start downloading and installing Jekyll.
Once installed, test if everything is working fine, by entering
you may also install the other plugins, with this command.
gem install jekyll-feed jekyll-sitemap jekyll-pagination jekyll-seo-tag
This will install four popular plugins for Jekyll that are directly used at Github Pages too. (you can create a free website there. We will also learn that with Jekyll).
We have installed ruby, Jekyll, and related plugins. If you are facing any issue, please comment it down below. I will be happy to answer.
In the next article, we will learn to use the Jekyll commands to create, deploy and serve our sites. Until then, keep learning programming from zero at ramdeoshubham.com.