lazy-layout
lazy-layout(direction: ttb, body)(source)Make multiple blocks match the size of the tallest (or widest) sibling without expanding to fill the entire page.
direction: ttb(default): equalizes block heights vialazy-v.direction: ltr: equalizes block widths vialazy-h.
If a column (or row) contains multiple lazy markers (stacked blocks), only the last one is activated.
Use cols(lazy-layout: true) as a convenient shorthand for the vertical case.
#lazy-layout(grid(
columns: (1fr, 1fr),
block(width: 100%)[
#lorem(10)
#lazy-v(1fr)
Bottom left.
],
block(width: 100%)[
#lorem(20)
#lazy-v(1fr)
Bottom right.
],
))
Parameters
Returns: content