prometheus-ev / jekyll-pagination Goto Github PK
View Code? Open in Web Editor NEWJekyll plugin to extend the pagination generator.
Home Page: http://rdoc.info/gems/jekyll-pagination
License: Other
Jekyll plugin to extend the pagination generator.
Home Page: http://rdoc.info/gems/jekyll-pagination
License: Other
= jekyll-pagination - Jekyll plugin to extend the pagination generator. == VERSION This documentation refers to jekyll-pagination version 0.0.4 == DESCRIPTION Jekyll plugin to extend the pagination generator. Add the following to your <tt>_plugins/ext.rb</tt> file: require 'jekyll/pagination' Then set +paginate_file+ or +paginate_files+ in your <tt>_config.yml</tt> like: paginate: 10 paginate_file: blog.html or paginate: 10 paginate_files: - blog.html - projects.html The default is to paginate the <tt>index.html</tt> file. == LINKS <b></b> Documentation:: http://rdoc.info/gems/jekyll-pagination Source code:: http://github.com/prometheus-ev/jekyll-pagination RubyGem:: http://rubygems.org/gems/jekyll-pagination == AUTHORS * Jens Wille <mailto:[email protected]> * Arne Eilermann <mailto:[email protected]> == LICENSE AND COPYRIGHT Copyright (C) 2010-2012 University of Cologne, Albertus-Magnus-Platz, 50923 Cologne, Germany Copyright (C) 2013 Jens Wille jekyll-pagination is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. jekyll-pagination is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with jekyll-pagination. If not, see <http://www.gnu.org/licenses/>.
I updated my jekyll gem to version 1.1 but I'm currently having issues using jekyll-pagination?
When I execute the jekyll
command, I get an ArgumentError
/usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/jekyll-pagination-0.0.4/lib/jekyll/pagination.rb:65:in `pagination_enabled?': wrong number of arguments (1 for 2) (ArgumentError)
Full output:
$ jekyll serve --watch --trace
Configuration file: /Users/bert/Projecten/personal/builtinbruges/web-blog/_config.yml
Source: ./site
Destination: ./web
Generating... /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/jekyll-pagination-0.0.4/lib/jekyll/pagination.rb:65:in `pagination_enabled?': wrong number of arguments (1 for 2) (ArgumentError)
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/jekyll-1.1.2/lib/jekyll/generators/pagination.rb:13:in `generate'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/jekyll-1.1.2/lib/jekyll/site.rb:203:in `block in generate'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/jekyll-1.1.2/lib/jekyll/site.rb:202:in `each'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/jekyll-1.1.2/lib/jekyll/site.rb:202:in `generate'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/jekyll-1.1.2/lib/jekyll/site.rb:43:in `process'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/jekyll-1.1.2/lib/jekyll/command.rb:18:in `process_site'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/jekyll-1.1.2/lib/jekyll/commands/build.rb:23:in `build'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/jekyll-1.1.2/lib/jekyll/commands/build.rb:7:in `process'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/jekyll-1.1.2/bin/jekyll:96:in `block (2 levels) in <top (required)>'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/commander-4.1.5/lib/commander/command.rb:180:in `call'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/commander-4.1.5/lib/commander/command.rb:180:in `call'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/commander-4.1.5/lib/commander/command.rb:155:in `run'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/commander-4.1.5/lib/commander/runner.rb:402:in `run_active_command'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/commander-4.1.5/lib/commander/runner.rb:78:in `run!'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/commander-4.1.5/lib/commander/delegates.rb:7:in `run!'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/commander-4.1.5/lib/commander/import.rb:10:in `block in <top (required)>'
I'm using this extension to be able to use pagination on another file instead of the default index.htm.
Also, according to this pull request, this should be possible in jekyll by default as of version 1.5, but I'm not really sure how long it will take for that version to be completed...
Commit 9970cdf made this plugin work for Jekyll 1.1+, but there is no published gem or version with the fix. Can you publish a new version with that fix?
I still get the pagination error after latest update:
jekyll 2.3.0 | Error: undefined method `pagination_enabled?' for class `Class'
Please add pagination support in sub directories. E.g. /blog/index.html -> /blog/pageX
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.