Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rudimentary support for tags on collections #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add rudimentary support for tags on collections #13

wants to merge 1 commit into from

Conversation

tepreece
Copy link

This is a little bit hacky, because Jekyll doesn't actually have tags on
collections, but we can fake it for the purposes of pagination.

Usage:

  1. Add a property called 'tags' to the documents in the collection.
  2. Use the 'collection_tag' property in paginator to filter on one tag
    from the list.

Note that it just does string matching for now, rather than actually
converting the tags on the collection documents to an array or anything
sensible like that.

This is a little bit hacky, because Jekyll doesn't actually have tags on
collections, but we can fake it for the purposes of pagination.

Usage:
1. Add a property called 'tags' to the documents in the collection.

2. Use the 'collection_tag' property in paginator to filter on one tag
from the list.

Note that it just does string matching for now, rather than actually
converting the tags on the collection documents to an array or anything
sensible like that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant