Giter Club home page Giter Club logo

jekyll-netlify's Introduction

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

jekyll-netlify's People

Contributors

bekicot avatar dependabot[bot] avatar jayvdb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jekyll-netlify's Issues

Set site.url

Jekyll uses site.url for providing absolute urls when it is needed, such as is good practise in files like feed.xml, robots.txt and sitemap.xml.

Travis build logs are very noisy

lots of

/home/travis/build/jayvdb/jekyll-netlify/vendor/bundle/ruby/2.3.0/gems/jekyll-3.7.3/lib/jekyll/renderer.rb:30: warning: instance variable @layouts not initialized

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.