diff --git a/views/search.html b/views/search.html index 8ae6699..3bdb7e0 100644 --- a/views/search.html +++ b/views/search.html @@ -1,45 +1 @@ -{{define "search"}} -
-
-

站内搜索

-
- -
- {{if .Word}}{{with .SearchResult}}{{if gt (.Hits.Hits|len) 0}} -
本次搜索共找到结果 {{.Hits.Total}} 条 (用时 {{.Took}} 秒)
- {{range .Hits.Hits}} -
- -
-
{{dateformat .Source.CreateTime "2006-01-02"}} ... {{str2html (join .Highlight.Content "...")}} ...
-
-
- {{end}}{{else}} -
没有找到任何结果,请更换查询词试试~
-
-
或者试试 Google 站内搜索:site:{{$.Domain}} {{$.Word}}
-
{{end}}{{end}} - {{else}} -
热搜词:{{range .HotWords}}{{.}}{{end}}
-
-

支持的搜索格式:

-
    -
  1. 输入关键词全文搜索:HTTP/2 性能优化
  2. -
  3. 指定时间段搜索:date:2014date:2015-05
  4. -
  5. 指定标签搜索:tag:性能优化tag:HTTPS
  6. -
  7. 组合搜索:type:post date:2015 tag:HTTP 优化
  8. -
-
- {{end}} -
-
-
- {{if or .Prev .Next}}{{end}} -
{{end}} +{{define "search"}}

站内搜索

{{if .Word}}{{with .SearchResult}}{{if gt (.Hits.Hits|len) 0}}
本次搜索共找到结果 {{.Hits.Total}} 条 (用时 {{.Took}} 秒)
{{range .Hits.Hits}}
{{dateformat .Source.CreateTime "2006-01-02"}} ... {{str2html (join .Highlight.Content "...")}} ...
{{end}}{{else}}
没有找到任何结果,请更换查询词试试~
或者试试 Google 站内搜索:site:{{$.Domain}} {{$.Word}}
{{end}}{{end}}{{else}}
热搜词:{{range .HotWords}}{{.}}{{end}}

支持的搜索格式:

  1. 输入关键词全文搜索:HTTP/2 性能优化
  2. 指定时间段搜索:date:2014date:2015-05
  3. 指定标签搜索:tag:性能优化tag:HTTPS
  4. 组合搜索:date:2015 tag:HTTP 优化
{{end}}
{{if or .Prev .Next}}{{end}}
{{end}}