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 66ddc84
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.respond_to?(:env) && Jekyll.env == 'development'
begin
require 'dotenv'
Dotenv.load
rescue LoadError
end
end

module Jekyll
unless const_defined? :Errors
Expand Down

0 comments on commit 66ddc84

Please sign in to comment.