{{if $categories}}
{{foreach $categories as $cat}} {{if $cat.url}}{{$cat.term}}{{else}}{{$cat.term}}{{/if}} {{/foreach}}
{{/if}}