Skip to content

Commit

Permalink
Merge pull request #53 from Crunch09/add_dotenv
Browse files Browse the repository at this point in the history
Load ENV via dotenv if available
  • Loading branch information
benbalter committed Apr 14, 2016
2 parents 31c7798 + 66ddc84 commit 4a4dad2
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 4a4dad2

Please sign in to comment.