WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.3k stars 4.11k forks source link

Query Loop Block: Continued iteration on bundled patterns #49280

Open annezazu opened 1 year ago

annezazu commented 1 year ago

We need a query pattern of a grid of featured images as a starting point. We need much more optionality on query patterns in general.

Pulled from https://github.com/WordPress/gutenberg/issues/48443 and a follow up to https://github.com/WordPress/gutenberg/issues/44140

cc @richtabor in case you have time to work on this.

richtabor commented 1 year ago

I'll see what I can do, though last I experimented the blockGap limitation (https://github.com/WordPress/gutenberg/issues/44899) was making it difficult to get spacing right in a grid layout.

tellthemachines commented 1 year ago

I'm thinking #49050 might be helpful to move this forward, but it needs a bit of input on how we want the columns behaviour in the grid template to work. The V1 of grid layout only allows setting a minimum column width, not a number of columns, but has the advantage of better responsivity out of the box vs the current solution. Using the grid layout will also allow us to easily add block spacing, which would fix #44899.

richtabor commented 1 year ago

Using the grid layout will also allow us to easily add block spacing, which would fix https://github.com/WordPress/gutenberg/issues/44899.

Post Template should probably have block gap too, as its children will inherit that parent block's spacing value — not the query loop's.

Using the grid layout will also allow us to easily add block spacing, which would fix https://github.com/WordPress/gutenberg/issues/44899.

As long as using grid layout isn't required for block spacing support.

mtias commented 1 year ago

What's the status here? Is there anything actionable remaining?

annezazu commented 1 year ago

Yes, we need to incorporate more patterns still! Room for improvement remains.

annezazu commented 1 month ago

Noting that another pattern that's needed is one that shows everything: post titles, full post content, tags, categories, author. Adding this pattern would be the fastest way to set up a blog as your homepage.