No commit activity in last 3 years
No release in over 3 years
Access environment variables using Liquid tags with Jekyll
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.0, < 5.x
 Project Readme

Jekyll Environment Variables

Buile Status Gem Version

Installation

Install the gem:

gem install jekyll-environment-variables

And then add it to your _config.yml:

plugins:  # "gems" before Jekyll 3.5
  - jekyll-environment-variables

Alternatively, you can use Bundler with Gemfile:

group :jekyll_plugins do
  gem 'jekyll-environment-variables'
end

Then run bundle install and let Bundler handle it for you.

Usage

All environment variables will be copied to site.env for use in Liquid templates.

Hostname: {{ site.env.HOSTNAME }}
My home: {{ site.env.HOME }}