Skip to content

Commit

Permalink
Load ENV via dotenv if available
Browse files Browse the repository at this point in the history
fixes #51
  • Loading branch information
Crunch09 committed Apr 1, 2016
1 parent 225bd6f commit ef46868
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/jekyll-github-metadata.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
require 'octokit'
if defined?(Jekyll) && Jekyll.env == 'development'
begin
require 'dotenv'
Dotenv.load
rescue LoadError
end
end

module Jekyll
unless const_defined? :Errors
Expand Down

0 comments on commit ef46868

Please sign in to comment.