Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jekyll-paginate-simplecategory

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jekyll-paginate-simplecategory

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Jekyll::Paginate::Simplecategory

Simple Pagination Generator for Jekyll Posts Categories

Installation

Add this line to your application's Gemfile:

gem 'jekyll-paginate-simplecategory'

And then execute:

$ bundle

Or install it yourself as:

$ gem install jekyll-paginate-simplecategory

Usage

Config Example

Example of _config.yml file:

# Plugins
gems:
  - jekyll-paginate
  - jekyll-paginate-simplecategory

# Pagination
paginate: 5
paginate_path: "/blog/page:num"

category_paginate_path: "/blog/:categories/page:num"

Customization

Layout

Simplecategory uses the default layout template set for pagination configured in the paginate_path parameter. To change the default layout add the category_layout parameter in _config.yml file:

# Pagination
category_layout: "category.html"

Create the layout file category.html in _layout directory. If you are placing the layout file in any other directory than put the relative path of the file as below.

# Pagination
category_layout: "/my_layouts/category.html"
Other

You can set a custom title for each pages by adding the category_page_title parameter in _config.yml file:

# Pagination
category_page_title: "My Blog - :categories - Page:num"

Contributing

Feel free to report any bug and/or submit any improvement pull requests.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 19 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc