-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Feat: Add ability to filter folder collection by filename. #1245
Comments
I don't think filter allows regexes currently does it? |
@erquhart Well, currently, |
Right, just clarifying the additional change here (and making sure I wasn't missing something). |
This comment has been minimized.
This comment has been minimized.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing as stale |
- Do you want to request a feature or report a bug?
feature
- What is the current behavior?
Currently, it is possible to filter a folder collection by a frontmatter value in the entries, but not by the actual filename itself. This would be really nice in cases where, for example, files with underscores in the name need to be filtered out.
- What is the expected behavior?
Provide ability to filter folder collections by filename (slug).
This could be really nice along with #513 (comment), so that "index" pages can be edited separately. For example,
{{slug}}/_index.md
for one collection, andfilter: name: /^[^_]/
for the entries.The text was updated successfully, but these errors were encountered: