diff --git a/static_comments.rb b/static_comments.rb index 184b059..a4e117d 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(attrs = nil) + data = (attrs.nil? ? to_liquid_without_comments() : to_liquid_without_comments(attrs)) data['comments'] = StaticComments::find_for_post(self) data['comment_count'] = data['comments'].length data