0.01
No release in over 3 years
Low commit activity in last 3 years
There's a lot of open issues
Access Netlify environment values in Jekyll templates
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
>= 0
~> 0.41

Runtime

~> 3.0
 Project Readme

Build Status Gem Version

Jekyll::Netlify

Expose Netlify deploy information to Jekyll templates and set site.environment=production.

{{site.netlify.branch}} # => Will return the branch name
{{site.netlify.pull_request.url}} # => Will return http://github.com/foo/bar/pulls/23

Installation

Add to your Gemfile:

group :jekyll_plugins do
  gem "jekyll-netlify"
end

For older versions of Jekyll, add to your _config.yml:

plugins:
  - jekyll-netlify

Usage

This plugin adds hash of site.netlify containing Build Environment information:

  • repository_url (git@...)
  • branch
  • pull_request: (false; true for BitBucket; or Hash for GitHub and GitLab)
    • id
    • url
  • head
  • commit
  • context
  • deploy_url
  • url
  • deploy_prime_url
  • webhook
    • title
    • url
    • body