I want to generate HTML in this manner.
However, the issue is: Is there a way to obtain the first and last elements from the content array? This would allow me to add and remove CSS classes accordingly.
Additionally, it would be beneficial if I could somehow retrieve the index of the current element as well as its siblings. Also length of content array.