Pagination in Middleman 4

Is there an easy way (or any way) to do pagination in Middleman 4?

Found it myself:

gem 'middleman-pagination', :git => 'https://github.com/jc00ke/middleman-pagination.git'

UPD: and now I have this error.

Template local pagination tried to overwrite an existing context value. Please rename the key when passing to locals