第一种写法:
{foreach $article.Tags as $arttag} {if count($article.Tags)<=3} <span><a href="{$arttag.Url}" target="_blank">{$arttag.Name}</a></span> {/if} {/foreach}
第二种写法:
{foreach array_slice($article.Tags,0,3) as $tag} <a href="{$tag.Url}" target="_blank">{$tag.Name}</a> {/foreach}