liquid icon indicating copy to clipboard operation
liquid copied to clipboard

[ Feature Request ] Block Object - Index Property

Open PhoneDroid opened this issue 1 year ago • 1 comments

It would be great if the Block object had a property
that indicated it's position in the section.blocks list.
( Similar to how the Section object does )

This way , when filtering for a certain block type it's positional data would remain.

{%- liquid

    assign block = blocks | where : 'type' , 'Type' | first

    assign index0 = block.index0
    assign index = block.index

-%}

PhoneDroid avatar Oct 16 '24 20:10 PhoneDroid

It would help tremendously with animations

Tardis1234 avatar Jan 21 '25 17:01 Tardis1234