Add documents to site payload
This commit is contained in:
parent
a2169bf0c4
commit
54b74fafba
|
@ -228,5 +228,14 @@ module Jekyll
|
||||||
path <=> anotherDocument.path
|
path <=> anotherDocument.path
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Determine whether this document should be written.
|
||||||
|
# Based on the Collection to which it belongs.
|
||||||
|
#
|
||||||
|
# True if the document has a collection and if that collection's #write?
|
||||||
|
# method returns true, otherwise false.
|
||||||
|
def write?
|
||||||
|
collection && collection.write?
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -325,6 +325,7 @@ module Jekyll
|
||||||
"categories" => post_attr_hash('categories'),
|
"categories" => post_attr_hash('categories'),
|
||||||
"tags" => post_attr_hash('tags'),
|
"tags" => post_attr_hash('tags'),
|
||||||
"collections" => collections,
|
"collections" => collections,
|
||||||
|
"documents" => documents,
|
||||||
"data" => site_data
|
"data" => site_data
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue