Add jekyll.environment to site_payload.
This commit is contained in:
parent
1c11afd78d
commit
780cff46b3
|
@ -314,19 +314,23 @@ 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 },
|
{
|
||||||
"site" => Utils.deep_merge_hashes(config,
|
"jekyll" => {
|
||||||
Utils.deep_merge_hashes(Hash[collections.map{|label, coll| [label, coll.docs]}], {
|
"version" => Jekyll::VERSION,
|
||||||
"time" => time,
|
"environment" => Jekyll.env
|
||||||
"posts" => posts.sort { |a, b| b <=> a },
|
},
|
||||||
"pages" => pages,
|
"site" => Utils.deep_merge_hashes(config,
|
||||||
"static_files" => static_files.sort { |a, b| a.relative_path <=> b.relative_path },
|
Utils.deep_merge_hashes(Hash[collections.map{|label, coll| [label, coll.docs]}], {
|
||||||
"html_pages" => pages.reject { |page| !page.html? },
|
"time" => time,
|
||||||
"categories" => post_attr_hash('categories'),
|
"posts" => posts.sort { |a, b| b <=> a },
|
||||||
"tags" => post_attr_hash('tags'),
|
"pages" => pages,
|
||||||
"collections" => collections,
|
"static_files" => static_files.sort { |a, b| a.relative_path <=> b.relative_path },
|
||||||
"documents" => documents,
|
"html_pages" => pages.reject { |page| !page.html? },
|
||||||
"data" => site_data
|
"categories" => post_attr_hash('categories'),
|
||||||
|
"tags" => post_attr_hash('tags'),
|
||||||
|
"collections" => collections,
|
||||||
|
"documents" => documents,
|
||||||
|
"data" => site_data
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue