I was wondering if someone have a tips to make something like below.
Let takes an simplified example:
Directors
Genre
Year
From these terms, Hugo would automatically create pages for each Director, Genre, and Year, with each listing all of the Movies that matched that specific Director, Genre, and Year. — Taxonomies | Hugo
Can Hugo generate the combinations of taxonomies?
/directors/wes-anderson/genre/comedy/ this would list the films directed by Wes Anderson and for which the genre is a comedy, like in this IMDB results page.
I understand it could be a lot of generated pages and routes, but I guess Hugo is fast enough to handle this large amount of data.
What do you think?
Should such filters be handled with JavaScript?
Note about Combinations vs Permutations
Permutations differ from Combinations, which are selections of some members of a set regardless of order.
Then for each directory term page hugo would also create a genre output format, comedy output format at /directors/wes-anderson/genre-comedy.html, /directors/wes-anderson/genre-comedy.html.
Then from the layouts/directors/term.genre-comedy.html template you could restrict the .Pages with the given genre with the proper where clause .
To improve the permalinks, if you’re using netlify you could use their _redirects file to make the rewrites your need. (They even have query params if you want something like /?genre=comedy&director=wes-anderson.