diff --git a/routers/search.go b/routers/search.go index 51a12d2be..912d7707a 100644 --- a/routers/search.go +++ b/routers/search.go @@ -34,6 +34,10 @@ func InitESClient() { } func Search(ctx *context.Context) { + log.Info("search template.") + if ctx.Query("q") == "" { + + } keyword := strings.Trim(ctx.Query("q"), " ") ctx.Data["Keyword"] = keyword ctx.Data["SortType"] = "newest"