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

filter_condition: check if contains/has/includes? #129

Open
jengajam opened this issue Jan 4, 2024 · 0 comments
Open

filter_condition: check if contains/has/includes? #129

jengajam opened this issue Jan 4, 2024 · 0 comments

Comments

@jengajam
Copy link

jengajam commented Jan 4, 2024

As with most of us using your plugin, thanks for creating it and saving us hours of work having to process pages manually like some crazy person.

I'm new to Jekyll, and I've had moderate success putting everything together for the thing I'm working on.

I'm currently in need of putting together category pages for the pages generated using your plugin. I've noted that filter_condition is what I'm looking for. And understand that you can set aside a set of books written by George Orwell.

The pages I generate with JDG contain an array of categories in the dataset eg. catAll: "Fruits, Vegetables, Drinks". Far as I understand, filter_condition requires the == or similar operator, but is there an operator for "contains"? Looking at ruby expressions, =~ isn't recognised and draws an error when I build the site. I don't want the category page to be specifically for Fruits, Vegetables and Drinks, but if catAll contains Drinks, can I generate a category page from that?

I apologise if this isn't the place to ask, and thank you for your time.

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

No branches or pull requests

1 participant