From d815c12571e051f5031f7fd855d41ff1e7fa23e2 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sun, 14 Jul 2013 04:22:34 +0200 Subject: [PATCH] Don't try to be smarter than the computer. Pass Excerpt#to_liquid to its parent post. --- lib/jekyll/excerpt.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/jekyll/excerpt.rb b/lib/jekyll/excerpt.rb index 4d704661..16584963 100644 --- a/lib/jekyll/excerpt.rb +++ b/lib/jekyll/excerpt.rb @@ -79,10 +79,7 @@ module Jekyll # # Returns the representative Hash. def to_liquid - further_data = Hash[ATTRIBUTES_FOR_LIQUID.map { |attribute| - [attribute, post.send(attribute)] - }] - further_data + post.to_liquid end def to_s