帮助中心

TUTUCMS在列表页调出文章的tag链接

日期:2015-12-20 10:58:51 来源:TUTUCMS

<ul>

<!--{foreach $list as  $val}-->

<li class="cf"> <a href="{$val.url}" target="_blank"> <img class="pic lazy" data-original="{@image($val.cover, 250, 316)}" alt="{$val.title}"/>

<dl>

<dt>{@cutstr($val.title, 24, '')}</dt>

<dd>

<p>{@cutstr($val.remark, 60, '...')}</p>

</dd>

</dl>

</a>

<dl>

<dd> <em class="btn02"><a class="timeago" title="{$val.pubdate}"></a> | 标签:

<!--{foreach $val.tagArr as $item}--><a target='_blank' href="{@tagsurl($item)}" title="{$item}"> {$item}</a><!--{/foreach}-->

</dl>

</li>

<!--{/foreach}-->

</ul>