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

#1175 and #2287 Allow eleventyExcludeFromCollections to take a list of tags #2482

Conversation

Snapstromegon
Copy link
Member

This is a first implementation for #1175 and #2287 to gather feedback.

This change allows for more fine grained control over how a template is excluded from collections by allowing to set eleventyExcludeFromCollections to a tag or list of tags to exclude the template from.

This is meant as a first implementation for feedback. Also I'm not completely sure if excluding the all Collection is done correctly.

I only added minimal tests, but probably some more are needed.

…a list of tags

This is a first implementation for 11ty#1175 and 11ty#2287 to gather feedback.

This change allows for more fine grained control over how a template is excluded from collections by allowing to set eleventyExcludeFromCollections to a tag or list of tags to exclude the template from.

This is meant as a first implementation for feedback. Also I'm not completely sure if excluding the `all` Collection is done correctly.

I only added minimal tests, but probably some more are needed.

Signed-off-by: Raphael Höser <[email protected]>
@Snapstromegon Snapstromegon marked this pull request as ready for review August 22, 2022 07:08
@zachleat zachleat self-assigned this Nov 10, 2023
@zachleat zachleat added this to the Eleventy 3.0.0 milestone Nov 10, 2023
@zachleat zachleat merged commit 9edee0d into 11ty:main Nov 10, 2023
@zachleat zachleat added the feature: 📞 collections Related to Eleventy’s tags/collections feature label Nov 10, 2023
@zachleat
Copy link
Member

zachleat commented Nov 10, 2023

Conflicts fixed and this will ship with 3.0.

Thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: 📞 collections Related to Eleventy’s tags/collections feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants