搜索标签
# 搜索标签
## 示范调用
```
<form action="<yunu:url name='search'/>" method="post">
<input type="text" name="key" placeholder="请输入查询的关键字">
<button type="submit">搜索</button>
</form>
```
## 搜结果页
模板名称:`search_index.html`
搜索结果标签:`{$keyword}`
### 示范调用
```
<yunu:list orderby="sort desc" keyword="$keyword">
<li>
<a href="{$list.url}" title="{$list.title}">
<div class="img-center"><img src="<if condition="$list['pic']">{$list.pic}<else/>{$list.content|str2img='1'}</if>" onerror="javascript:this.src='__PUBLIC__/images/nopic.jpg';" alt="{$list.title}"></div>
<div class="text">
<h4><span>{$list.create_time|date='Y-m-d H:i:s',###}</span>{$list.title} </h4>
<p><if condition="$list['desc']">{$list.desc|str2sub=140, true}<else/>{$list.content|str2sub=140, true}</if>...</p>
<span class="more">了解详情</span> </div>
</a>
</li>
</yunu:list>