Jekyll::Netlify
Expose Netlify deploy information to Jekyll templates
and set site.environment=production.
{{site.netlify.branch}} # => Will return the branch name
Installation
Add to your Gemfile:
gem 'jekyll-netlify'
Add to your _config.yml:
plugins:
- jekyll-netlify
Usage
This plugin adds hash of site.netlify containing
Build Environment information:
- repository_url
- branch
- pull_request: bool
- head
- commit
- context
- deploy_url
- url
- deploy_prime_url
- webhook
- title
- url
- body