I have created a content template where user can create multiple cards/boxes.It works well but i would like to change the css if user create just one box. I tried it with getList()?size but it didnt work. Any idea how can I proof if the size is 1?
<div id="my-cards">
<#list boxen.getSiblings() as box>
<#assign i = box.getList()?size>
<#if i==1>
<p>There is one box</p>
</#if>
<!-- Card-->
<div class="card-box mb-3">
<!-- Image-->
<div class="card-pic">
<#if box.image.getData() != "">
<img src="${box.image.getData()}" />
</#if>
</div>
<!-- Content-->
<div class="card-box-content">
<#if box.headline.getData() != "">
<h2 class="title">${box.headline.getData()}</h2>
</#if>
<#if box.content.getData() != "">
<p class="description">${box.content.getData()}</p>
</#if>
<div class="card-box-footer">
<br />
</div>
</div>
</#list>
</div>