jekyll-reload

Reload your content when Jekyll finishes building.


Keywords
jekyll, livereload, prototyping, user-interface
License
Apache-2.0
Install
gem install jekyll-reload -v 1.0.1

Documentation

Code Climate Gem Version Gem DL

Jekyll Reload

Jekyll Reload is a modern, simple, and to the point take on LiveReload for Jekyll. There is no adding of scripts to your source, there is just using LiveReload, and booting your site with the server in development, and then having your browser connect to the LiveReload after your site becomes available to browser (most of the time this will be automatic if you've already enabled LiveReload for the port before).

Usage

gem "jekyll-reload", {
  group: "jekyll-plugins"
}

In your Layout <head>

W/ Jekyll-Assets

{% asset livereload.js %}

Vendor

{% livereload %}

Addon

  1. Download the Browser Plugin
  2. Click to enable.

Config

reloader:
  error_file: nil
  host: Jekyll::Site#config["host"]
  port: 35729

The Reloader can return an error page, if you designate one, this is will allow you to customize the error message you see in development, or to serve up your standard error page for consistency, if you want. It should be the relative path from your source, and part of Jekyll.