gem install jekyll-environment-variables
or add it to your Gemfile
:
gem 'jekyll-environment-variables'
Require the gem in plugins/ext.rb
require 'jekyll/environment-variables'
Or require the gems in the configuration
gems: ['jekyll/environment-variables']
Environment variable: {{ site.env.VARIABLE_NAME }}