I would like to stop a loop in FreeMarker after 8 records are returned. So far, I have the following code
<#ftl ns_prefixes={"content":"http://purl.org/rss/1.0/modules/content/","dc":"http://purl.org/dc/elements/1.1/"}>
<#list kiblogs.rss.channel.item as item>
<div class="span4">
<div class="panel">
<img src="${item.thumbnail.@@nested_markup}" class="title-image">
<div class="top-content">
<h3>${item.title}</h3>
<div class="datetime">${item.pubDate?substring(0, 16)}</div>
<div class="analyst">${item["dc:creator"]}</div>
<p class="ellipsis multiline">${item.description}</p>
<div class="bottom-blue-buttn">
<a class="launch" attrId="${item.uid}">Read the blog</a>
</div>
</div>
</div>
</div>
<hr>
</#list>
I solved it by adding
So my code is now