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
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
This plugin adds hash of site.netlify containing
Build Environment information:
git@...)