diff --git a/lib/jekyll/document.rb b/lib/jekyll/document.rb index 0fb6719f..248e6d15 100644 --- a/lib/jekyll/document.rb +++ b/lib/jekyll/document.rb @@ -206,7 +206,8 @@ module Jekyll "content" => content, "path" => path, "relative_path" => relative_path, - "url" => url + "url" => url, + "collection" => collection.label } else data diff --git a/site/docs/collections.md b/site/docs/collections.md index 47ecc462..91460c96 100644 --- a/site/docs/collections.md +++ b/site/docs/collections.md @@ -244,6 +244,16 @@ In addition to any YAML front-matter provided in the document's corresponding fi
+collection
+ The name of the document's collection. +
+