What is jekyll ruby




















Jekyll has its own documentation site and a Quickstart. To prepare your environment to build Jekyll sites locally, follow the instructions for either Windows or MacOS. Then follow these steps to set up Jekyll and Ruby.

Open Git Bash and then set up Notepad as your default editor by typing:. Then, you can type this in Git Bash to edit the. Or, open. This tutorial takes you from having some front-end web development experience to building your first Jekyll site from scratch without relying on the default gem-based theme. Jekyll is a Ruby gem. First, install Ruby on your machine. Go to Installation and follow the instructions for your operating system.

Edit the Gemfile in a text editor and add jekyll as a dependency:. Additionally, you might need to change the code page of the console window to UTF-8 in case you get a Liquid Exception: Incompatible character encoding error during the site generation process.

Run the following:. Version 2. This will result in incorrect date and time for your posts when the site is built with Jekyll 3.

We therefore recommend that you lock the Timezone library to version 1. Jekyll uses the listen gem to watch for changes when the --watch switch is specified during a build or serve. While listen has built-in support for UNIX systems, it may require an extra gem for compatibility with Windows. Add the following to the Gemfile for your site if you have issues with auto-regeneration on Windows alone:.



0コメント

  • 1000 / 1000