diff --git a/config.json b/config.json index d20b24c..60677db 100644 --- a/config.json +++ b/config.json @@ -14,6 +14,6 @@ "documentGitUrl": "https://github.com/jixishi/blog_docs.git", "themePath": "/blog", "themeColor": "#2196f3", - "dashboard": "adminjxs", + "dashboard": "/adminjxs", "themeOption": ["#673ab7","#f44336","#9c27b0","#2196f3","#607d8b","#795548"] } diff --git a/controller/index.go b/controller/index.go index 8dc1c4f..7d125d5 100644 --- a/controller/index.go +++ b/controller/index.go @@ -24,7 +24,6 @@ func Index(w http.ResponseWriter, r *http.Request) { search := r.Form.Get("search") category := r.Form.Get("category") tag := r.Form.Get("tag") - if search != "" || category != "" || tag != "" { articles = models.ArticleSearch(&articles, search, category, tag) } diff --git a/themes/blog/layouts/footer.html b/themes/blog/layouts/footer.html index 97ee427..9a5dac1 100644 --- a/themes/blog/layouts/footer.html +++ b/themes/blog/layouts/footer.html @@ -3,7 +3,7 @@