Git Product home page Git Product logo

jekyll-pagination's Introduction

= 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/>.

jekyll-pagination's People

Contributors

blackwinter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jekyll-pagination's Issues

jekyll-pagination does not work anymore with jekyll 1.1?

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...

support sub directories

Please add pagination support in sub directories. E.g. /blog/index.html -> /blog/pageX

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.