From 4b30bd62d937d2ba6e7f16fc5fe8082abb0d3f1e Mon Sep 17 00:00:00 2001 From: Matt Palmer Date: Wed, 12 Feb 2014 09:47:43 +1100 Subject: [PATCH] Pass through any args given to to_liquid --- static_comments.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static_comments.rb b/static_comments.rb index 184b059..86c00f2 100644 --- a/static_comments.rb +++ b/static_comments.rb @@ -21,8 +21,8 @@ class Jekyll::Post alias :to_liquid_without_comments :to_liquid - def to_liquid - data = to_liquid_without_comments + def to_liquid(*args) + data = to_liquid_without_comments(*args) data['comments'] = StaticComments::find_for_post(self) data['comment_count'] = data['comments'].length data