octopress / paginate

A simple paginator for Jekyll sites.
MIT License
105 stars 37 forks source link

Paginate category #37

Open alessiofx opened 7 years ago

alessiofx commented 7 years ago

When I use:

paginate: collection: work per_page: 10 limit: false permalink: /:num/ categories: [Advertising]

compile error: Incremental build: disabled. Enable with --incremental Generating... Deprecation: Document#categories is now a key in the #data hash. Deprecation: Called by /Library/Ruby/Gems/2.0.0/gems/octopress-paginate-1.2.0/lib/octopress-paginate.rb:148:inblock in collection'. Deprecation: Document#categories is now a key in the #data hash. Deprecation: Called by /Library/Ruby/Gems/2.0.0/gems/octopress-paginate-1.2.0/lib/octopress-paginate.rb:148:in block in collection'. Deprecation: Document#categories is now a key in the #data hash. Deprecation: Called by /Library/Ruby/Gems/2.0.0/gems/octopress-paginate-1.2.0/lib/octopress-paginate.rb:148:inblock in collection'. Deprecation: Document#categories is now a key in the #data hash. Deprecation: Called by /Library/Ruby/Gems/2.0.0/gems/octopress-paginate-1.2.0/lib/octopress-paginate.rb:148:in block in collection'. Deprecation: Document#categories is now a key in the #data hash. Deprecation: Called by /Library/Ruby/Gems/2.0.0/gems/octopress-paginate-1.2.0/lib/octopress-paginate.rb:148:inblock in collection'. Deprecation: Document#categories is now a key in the #data hash. Deprecation: Called by /Library/Ruby/Gems/2.0.0/gems/octopress-paginate-1.2.0/lib/octopress-paginate.rb:148:in block in collection'. Deprecation: Document#categories is now a key in the #data hash. Deprecation: Called by /Library/Ruby/Gems/2.0.0/gems/octopress-paginate-1.2.0/lib/octopress-paginate.rb:148:inblock in collection'. Deprecation: Document#categories is now a key in the #data hash. Deprecation: Called by /Library/Ruby/Gems/2.0.0/gems/octopress-paginate-1.2.0/lib/octopress-paginate.rb:148:in block in collection'. Deprecation: Document#categories is now a key in the #data hash. Deprecation: Called by /Library/Ruby/Gems/2.0.0/gems/octopress-paginate-1.2.0/lib/octopress-paginate.rb:148:inblock in collection'. Deprecation: Document#categories is now a key in the #data hash. Deprecation: Called by /Library/Ruby/Gems/2.0.0/gems/octopress-paginate-1.2.0/lib/octopress-paginate.rb:148:in block in collection'. Deprecation: Document#categories is now a key in the #data hash. Deprecation: Called by /Library/Ruby/Gems/2.0.0/gems/octopress-paginate-1.2.0/lib/octopress-paginate.rb:148:inblock in collection'. Deprecation: Document#categories is now a key in the #data hash. Deprecation: Called by /Library/Ruby/Gems/2.0.0/gems/octopress-paginate-1.2.0/lib/octopress-paginate.rb:148:in block in collection'.

Why ??

Saifadin commented 7 years ago

I have the same problem, will the devs respond to this?

alisaono commented 7 years ago

Same issue here.

aprilmintacpineda commented 7 years ago

This is a duplicate of #35