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

Feat: Add ability to filter folder collection by filename. #1245

Closed
tech4him1 opened this issue Apr 11, 2018 · 6 comments
Closed

Feat: Add ability to filter folder collection by filename. #1245

tech4him1 opened this issue Apr 11, 2018 · 6 comments

Comments

@tech4him1
Copy link
Contributor

- 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, and filter: name: /^[^_]/ for the entries.

@erquhart
Copy link
Contributor

I don't think filter allows regexes currently does it?

@tech4him1
Copy link
Contributor Author

tech4him1 commented Apr 12, 2018

@erquhart Well, currently, filter only works on frontmatter values, not filenames.

@erquhart
Copy link
Contributor

erquhart commented Apr 13, 2018

Right, just clarifying the additional change here (and making sure I wasn't missing something).

@tech4him1

This comment has been minimized.

@stale
Copy link

stale bot commented Oct 29, 2019

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.

@martinjagodic
Copy link
Member

Closing as stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants