From f623404b89d857b27bfb02d4dba80fe549d2a483 Mon Sep 17 00:00:00 2001 From: Bud Parr Date: Thu, 22 May 2014 21:19:47 -0400 Subject: [PATCH 1/2] add collection.label to Document#to_liquid --- lib/jekyll/document.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/jekyll/document.rb b/lib/jekyll/document.rb index 0fb6719f..5dbc47f0 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, + "label" => collection.label } else data From 2e2aac5988c3eb869b81fc141fb55089fcc4cd02 Mon Sep 17 00:00:00 2001 From: Bud Parr Date: Thu, 22 May 2014 21:30:40 -0400 Subject: [PATCH 2/2] add label to document section of collections page --- site/docs/collections.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/site/docs/collections.md b/site/docs/collections.md index 47ecc462..15e63ad0 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

+ + +

label

+ + +

+ The name of the document's collection. +

+ +