在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:midnightSuyama/jekyll-paginate-category开源软件地址:https://github.com/midnightSuyama/jekyll-paginate-category开源编程语言:Ruby 100.0%开源软件介绍:Jekyll::Paginate::CategoryPagination Generator for Jekyll Category InstallationAdd this line to your application's Gemfile: gem 'jekyll-paginate-category' And then execute:
Or install it yourself as:
Usage_config.ymlgems: [jekyll-paginate, jekyll-paginate-category]
paginate: 5
paginate_path: "page:num"
category_dir: "categories"
category_layout: "index.html" index.html (category_layout){% if page.paginator %}
{% assign paginator = page.paginator %}
{% endif %}
{% for post in paginator.posts %}
...
{% endfor %} Simple how-toThis plugin is designed to generate paginated categories for your jekyll project. If you've added categories to the YAML front matter for your posts, the only files you should need to change are your Change these files as indicated below, then build your project. A set of paginated category pages will be generated in your DevelopmentAfter checking out the repo, run To install this gem onto your local machine, run ContributingBug reports and pull requests are welcome on GitHub at https://github.com/midnightSuyama/jekyll-paginate-category. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct. LicenseThe gem is available as open source under the terms of the MIT License. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论