Jekyll plugin for pagination of posts organized by tags.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
tags-pagination.rb

README.md

jekyll-tagging-pagination

Plugin for Jekyll static site generator, to enable pagination of posts organized by tags.

Though Jekyll provides pagination, it is only available in index pages. jekyll-tagging-pagination makes pagination also available in tag pages.

Installation

Copy tags-pagination.rb file into _plugins directory (you might need to create it).

Usage

In your post's YAML front matter, add tags like this:

tags:
- jekyll
- pagination

In your _layouts directory, create file tag.html. That template is used to create an index page for every tag mentioned in posts. Inside that template, use paginator object like this:

{% for post in paginator.posts %}
    {{ post.title }}
{% endfor %}

paginator object provides tag information, use paginator.tag for that.