当前位置: 首页 > 软件库 > Web应用开发 > >

jekyll-paginate-v2

授权协议 MIT License
开发语言 JavaScript
所属分类 Web应用开发
软件类型 开源软件
地区 不详
投 递 者 锺离飞尘
操作系统 未知
开源组织
适用人群 未知
 软件概览

Jekyll::Paginate V2

⚠️ Please note that this plugin is NOT supported by GitHub pages. Here is a list of all plugins supported. However you can follow this GitHub guide to enable it or by using Travis CI. GitLab supposedly supports any plugin.

Pagination gem built specially for Jekyll 3, and newer, that is fully backwards compatible and serves as an enhanced replacement for the previously built-in jekyll-paginate gem. View it on rubygems.org.

Reach me at the project issues section or via email at jekyll@sverrirs.com, you can also get in touch on the project's Gitter chat room.

"Be excellent to each other"

❤️

Installation

gem install jekyll-paginate-v2

Update your _config.yml and pages.

Although fully backwards compatible, to enable the new features this gem needs slightly extended site yml configuration and miniscule additional new front-matter for the pages to paginate on.

Now you're ready to run jekyll serve and your paginated files should be generated.

Please see the Examples for tips and tricks on how to configure the pagination logic.

Pagination Generator

The Pagination Generator forms the core of the pagination logic. Calculates and generates the pagination pages.

Auto Pages

The Auto-Pages is an optional feature that auto-magically generates paginated pages for all your tags, categories and collections.

Contributing

Although this project is small it has a code of conduct that I hope everyone will do their best to follow when contributing to any aspects of this project. Be it discussions, issue reporting, documentation or programming.

If you don't want to open issues here on Github, send me your feedback by email at jekyll@sverrirs.com.

  1. Fork it ( https://github.com/sverrirs/jekyll-paginate-v2/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Run the unit tests (rake)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Build the gem locally (gem build jekyll-paginate-v2.gemspec)
  6. Test and verify the gem locally (gem install ./jekyll-paginate-v2-x.x.x.gem)
  7. Push to the branch (git push origin my-new-feature)
  8. Create new Pull Request

Note: This project uses semantic versioning.

The code was based on the original design of jekyll-paginate and features were sourced from discussions such as #27 (thanks Günter Kits).

  • 对于许多网站,尤其是博客,将主要的文章列表分解为较小的列表并在多个页面上显示是非常常见的。Jekyll提供了一个 pagination 插件,因此您可以自动生成分页列表所需的适当文件和文件夹。 对于Jekyll 3,在 Gemfile 和 plugins 下的 _config.yml 中包含 jekyll-paginate 插件。对于Jekyll 2来说,这是标准配置。 分页仅适用于HTML文件

 相关资料
  • Jekyll::Paginate Default pagination generator for Jekyll. Installation Add this line to your application's Gemfile: gem 'jekyll-paginate' And then execute: $ bundle Or install it yourself as: $ gem in

  • Easy Paginate是一个简单的jQuery插件,这个插件能够帮您轻松创建拥有分页功能的条目浏览控件。支持自动分页,提供手动控制向前/向后按纽,可以设置是否自动播放,切换延迟时间,当前选中哪一页等。 在线演示:http://cssglobe.com/lab/easypaginate/02.html

  • flask-paginate 是 Flask 框架中的分页工具。使用 Bootstrap 作为 CSS 框架时,它需要 Python 2.6+ 的支持来处理 string.format 语法。 示例: .pagination-page-info {    padding: .6em;    padding-left: 0;    width: 40em;    margin: .5em;    m

  • 1、常用 paginate Model 与 Db 中提供了最常用的分页API:paginate(int pageNumber, int pageSize, String select, String sqlExceptSelect, Object... paras) 其中的参数含义分别为:当前页的页号、每页数据条数、sql语句的select部分、sql语句除了select以外的部分、查询参数。绝大

  • Jekyll 是一个简单的免费的Blog生成工具,类似WordPress。但是和WordPress又有很大的不同,原因是jekyll只是一个生成静态网页的工具,不需要数据库支持。但是可以配合第三方服务,例如discuz。最关键的是jekyll可以免费部署在Github上,而且可以绑定自己的域名。 快速安装指令: gem install jekylljekyll new my-awesome-sit

  • Adding a shopping cart to your static Jekyll site (Snipcart v2.0) This repo hosts the code for a working version of a Jekyll-built, Snipcart-powered e-commerce site. Please note that it uses Snipcart'