Skip to content

Commit 4b30bd6

Browse files
committed
Pass through any args given to to_liquid
1 parent ef2507a commit 4b30bd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

static_comments.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
class Jekyll::Post
2222
alias :to_liquid_without_comments :to_liquid
2323

24-
def to_liquid
25-
data = to_liquid_without_comments
24+
def to_liquid(*args)
25+
data = to_liquid_without_comments(*args)
2626
data['comments'] = StaticComments::find_for_post(self)
2727
data['comment_count'] = data['comments'].length
2828
data

0 commit comments

Comments
 (0)