search页面
默认article目前,不管是文章搜索还是商品搜索还是链接搜索都是指向的同一个模板,通过特定的标识区分
{{template "header.html" .}}
{{template "nav.html" .}}
{{template "bread.html" .}}
{{if .isSearch}}搜索到与:{{.key}}相关的内容{{else}}所有内容{{end}}
{{range .articles}}
{{if ne "" .Img}}
{{else}}
{{end}}
{{end}}
{{template "sidebar" .}}
{{template "footer.html" .}}
{{template "js.html" .}}