Add jekyll.environment to site_payload.
This commit is contained in:
parent
1c11afd78d
commit
780cff46b3
|
@ -314,7 +314,11 @@ module Jekyll
|
||||||
# "tags" - The Hash of tag values and Posts.
|
# "tags" - The Hash of tag values and Posts.
|
||||||
# See Site#post_attr_hash for type info.
|
# See Site#post_attr_hash for type info.
|
||||||
def site_payload
|
def site_payload
|
||||||
{"jekyll" => { "version" => Jekyll::VERSION },
|
{
|
||||||
|
"jekyll" => {
|
||||||
|
"version" => Jekyll::VERSION,
|
||||||
|
"environment" => Jekyll.env
|
||||||
|
},
|
||||||
"site" => Utils.deep_merge_hashes(config,
|
"site" => Utils.deep_merge_hashes(config,
|
||||||
Utils.deep_merge_hashes(Hash[collections.map{|label, coll| [label, coll.docs]}], {
|
Utils.deep_merge_hashes(Hash[collections.map{|label, coll| [label, coll.docs]}], {
|
||||||
"time" => time,
|
"time" => time,
|
||||||
|
|
Loading…
Reference in New Issue