From 85462980478df760edbf201d4b4bd7bad437e1b5 Mon Sep 17 00:00:00 2001 From: Bernardo Dias Date: Sat, 24 Jan 2015 19:40:43 -0200 Subject: [PATCH] fix collections output, see #2346 --- lib/jekyll/site.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/site.rb b/lib/jekyll/site.rb index b909bece..92aa0f39 100644 --- a/lib/jekyll/site.rb +++ b/lib/jekyll/site.rb @@ -251,7 +251,7 @@ module Jekyll "html_pages" => pages.select { |page| page.html? || page.url.end_with?("/") }, "categories" => post_attr_hash('categories'), "tags" => post_attr_hash('tags'), - "collections" => collections, + "collections" => collections.values.map(&:to_liquid), "documents" => documents, "data" => site_data }))