Access environment variables from within your Jekyll project's liquid templates
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib generator Nov 5, 2015
.travis.yml travis config Nov 19, 2015
README.md example Nov 5, 2015
Rakefile rakefile Nov 19, 2015
jekyll-environment-variables.gemspec cleanup Nov 5, 2015

README.md

Installation

gem install jekyll-environment-variables

or add it to your Gemfile:

gem 'jekyll-environment-variables'

Usage

Require the gem in plugins/ext.rb

require 'jekyll/environment-variables'

Or require the gems in the configuration

gems: ['jekyll/environment-variables']

Example

Environment variable: {{ site.env.VARIABLE_NAME }}