Skip to content

Commit

Permalink
Pass through any args given to to_liquid
Browse files Browse the repository at this point in the history
  • Loading branch information
mpalmer committed Feb 11, 2014
1 parent ef2507a commit 4b30bd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static_comments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b30bd6

Please sign in to comment.