Install Jekyll on Windows with Chocolatey

Install Jekyll on Windows with Chocolatey

set up Jekyll locally using Chocolatey on Windows

In this installation guide we’ll use Windows 10 & package manager Chocolatey. These instructions should work for older versions of Windows but they have not been tested.

Install Chocolatey

First, ensure that you are using an administrative shell. For example, using Command Promt (cmd): Find cmd in All Apps -> Windows System -> Command Prompt. Right click on the icon, select “More” then “Run as administrator”.

Next, we’re going to install Chocolatey with powershell.exe:

NOTE from Chocolatey: Please inspect https://chocolatey.org/install.ps1 prior to running any of these scripts to ensure safety. We already know it’s safe, but you should verify the security and contents of *any* script from the internet you are not familiar with. All of these scripts download a remote PowerShell script and execute it on your machine. We take security very seriously. Learn more about our security protocols.

With PowerShell, you must ensure Get-ExecutionPolicy is not Restricted. We suggest using Bypass to bypass the policy to get things installed or AllSigned for quite a bit more security. To do that, run Get-ExecutionPolicy. If it returns Restricted, then run Set-ExecutionPolicy AllSigned or Set-ExecutionPolicy Bypass -Scope Process. The following installation script will handle it automatically.

Now run the following command in cmd:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Wait a few seconds for the command to complete. If you don’t see any errors, you are ready to use Chocolatey! Type choco or choco -? now, or see Getting Started for usage instructions.

But it’s recommended to close cmd and re-open it again to make Chocolatey available, remember to run the cmd as administrator.

Install Ruby using Chocolatey

Then we’ll install ruby.

choco install ruby -y

Close cmd and open it once again to make Ruby available, remember to run the cmd as administrator.

Install Jekyll using Ruby Gem

And now we can install Jekyll.

gem install jekyll

After that, we can test Jekyll is working by checking the version of Jekyll.

jekyll -v

Installation via Bash on Windows 10

If you are using Windows 10 version 1607 or later, another option to run Jekyll is by installing the Windows Subsystem for Linux.

See detailed installation guid here: https://jekyllrb.com/docs/installation/windows/#installation-via-bash-on-windows-10.

In this fashion, you’re totally switched to a Linux environment for Jekyll development, have fun with that.


Frank Lin

Hey, there! This is Frank Lin (@flinhong), one of the 1.4 billion 🇨🇳. This 'inDev. Journal' site holds the exploration of my quirky thoughts and random adventures through life. Hope you enjoy reading and perusing my posts.


Setup an IKEv2 server with StrongSwan



Setup an IKEv2 server with StrongSwan

IKEv2, or Internet Key Exchange v2, is a protocol that allows for direct IPSec tunneling between the server and client. In IKEv2 implementations, IPSec provides encryption for the network traffic. IKEv2 is natively supported on some platforms (OS X 10.11+, iOS 9.1+, and Windows 10) with no additional applications necessary, and it handles client hiccups quite smoothly.

Using Liquid in Jekyll - Live with Demos

Web Notes


Using Liquid in Jekyll - Live with Demos

Liquid is a simple templating language that Jekyll uses to process pages on your site. With Liquid you can output an modify variables, have logic statements inside your pages and loop over content.

Host Jekyll site on Google Firebase with free SSL



Host Jekyll site on Google Firebase with free SSL

Firebase Hosting is a developer focused static web hosting provider that is super fast, secure and reliable. You can quickly and easily deploy your static websites to a global content-delivery network (CDN) with a single command.