Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugins/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