Hello jekyll

Posted by RedLeaves on April 28, 2021

Jekyll is a static site generator. It takes text written in your favorite markup language and uses layouts to create a static website. You can tweak the site’s look and feel, URLs, the data displayed on the page, and more.

Prerequisites

Jekyll requires the following:

  • Ruby version ** or higher
  • RubyGems
  • GCC and Make

See Requirements for guides and details.

Instructions

  1. Install all prerequisites.
  2. Install the jekyll and bundler gems.
    1
    
    gem install jekyll bundler
    
  3. Create a new Jekyll site at ./myblog.
    1
    
    jekyll new myblog
    
  4. Change into your new directory.
    1
    
    cd myblog
    
  5. Build the site and make it available on a local server.
    1
    
    bundle exec jekyll serve
    
  6. Browse to http://localhost:4000

Pass the --livereload option to serve to automatically refresh the page with each change you make to the source files: bundle exec jekyll serve --livereload

If you encounter any errors during this process, check that you have installed all the prerequisites in Requirements. If you still have issues, see Troubleshooting.

Installation varies based on your operating system. See our guides for OS-specific instructions.