decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.96k stars 3.05k forks source link

feat: allow multiple filter values, fixes #7328 #7329

Open paulroub opened 1 week ago

paulroub commented 1 week ago

Summary

Allows a collection filter to match one of a number of values; still allows the existing single-value syntax, as well as an array of values.

Need to manage a collection that's a combination of existing categories (rather than re-categorize all those posts).

Test plan

Checklist

Please add a x inside each checkbox:

A picture of a cute animal (not mandatory but encouraged)

rp

martinjagodic commented 1 week ago

@paulroub, thanks for your contribution. Before we review, can you please ensure the tests are passing?

paulroub commented 6 days ago

@martinjagodic Fixed the linting issues, along the way had to tell stylelint to ignore backend.ts as it was trying to parse a cast as CSS and was not happy with the result. No actual styles in this file, of course, so that should be harmless.