Getting Started with Jekyll on Windows

August 24, 2016| demoplanet

Jekyll is developed by Github and written in language Ruby.

Is it a CMS? no it’s not !

Is it a Blogging Software ? no it’s not !

How it is installed ? It’s installed as a Ruby Gem.

For details step by step guide you can follow below process:

  1. Download the Ruby Installer
  2. Right Click and  Run as Administrator
  3. Click Yes and Select the language during installation and click OK.
  4. Check the “License Agreement” & Click Next.
  5. Check “Add Ruby executables to your PATH” & Click Install.
  6. Click Finish.
  7. Open Command Line (CMD)
  8. Install Jekyll:
    gem install jekyll
  9. Create new static web project:
    jekyll new web-project
    cd web-project
    
  10. Install Bundler :
    gem install bundler
    
  11. Install Dependencies:
    bundle install
  12. Now Run the website:
    bundle exec jekyll serve
  13.  Now browse to Server Address : http://localhost:4000 or http://localhost:4000

What Issues you might face while Installing Jekyll on Windows?

One of the issue windows user might face is error while loading the Layout e.g.


Error reading file C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/minima-1.0.1/_layouts/default.html: No such file or directory @ rb_sysopen - /Ruby23-x64/lib/ruby/gems/2.3.0/gems/minima-1.0.1/_layouts/default.html
Error reading file C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/minima-1.0.1/_layouts/page.html: No such file or directory @ rb_sysopen - /Ruby23-x64/lib/ruby/gems/2.3.0/gems/minima-1.0.1/_layouts/page.html
Error reading file C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/minima-1.0.1/_layouts/post.html: No such file or directory @ rb_sysopen - /Ruby23-x64/lib/ruby/gems/2.3.0/gems/minima-1.0.1/_layouts/post.html

 

Solution:

Its temporary fix and I guess in the coming version developer will fix this issues . To resolve this Error in reading file while running jekyll server is to just copy the _layouts folder from minima gem to your root of the test project or blog.

 

C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/minima-1.0.1/_layouts/ -> E:/yourfolder/_layouts 

 

Let us know in the coments below if you are facing any issues while installing jekyll on windows.

Thnks 🙂

Categories: NodeJS

Leave a Reply

Your email address will not be published. Required fields are marked *

Rating*