<% if $Categories %> <ul> <% loop $Categories %> <li> <a href="$Link" title="$Title"> <span class="arrow">→</span> <span class="text">$Title</span> </a> </li> <% end_loop %> </ul> <% end_if %>