Skip to content

Jekyll plugin for pagination of posts organized by tags.

License

Notifications You must be signed in to change notification settings

iliaaw/jekyll-tagging-pagination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Jekyll plugin for pagination of posts organized by tags.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages