mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-16 06:05:00 -05:00
Ensure that Octopress.env can be set by ENV, _config/defaults/jekyll.yml and _config/site.yml
This commit is contained in:
parent
463e4a7656
commit
940064cac6
@ -9,6 +9,6 @@ module Octopress
|
||||
# Static: Fetches the Octopress environment
|
||||
def self.env
|
||||
configurator = Octopress::Configuration.new
|
||||
ENV["OCTOPRESS_ENV"] || configurator.read_config("defaults/jekyll.yml")[:env]
|
||||
ENV["OCTOPRESS_ENV"] || configurator.read_config("defaults/jekyll.yml").deep_merge(configurator.read_config("site.yml"))[:env]
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user