{include file="includes/header.html" title="搜索结果"}
搜索{if #url.type=='tag'}标签{else}关键字{/if}{#url.value}共找到{#item_total_count}篇文章

{foreach #posts as $post}
{$post.title} 发布时间:{api format_time($post.update_time)}
{if api::is_string_empty($post.summary) == false} {$post.summary} ...阅读全文 {else} {$post.content} {/if}
{if $post.tags != null} {code $tags = explode(',', $post.tags);} {foreach $tags as $tag} {$tag} {/foreach} {else} 尚未添加标签 {/if}      阅读:{$post.read_count}   评论:{$post.comment_count}
{/foreach} {if count(#posts) > 0} {/if}
{include file="includes/footer.html"}