From 9c0d18a6d03af1e1c134c711432c43218f062d40 Mon Sep 17 00:00:00 2001 From: JiXieShi Date: Thu, 28 Mar 2024 17:32:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=90=9C=E7=B4=A2=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.json | 2 +- controller/index.go | 1 - themes/blog/layouts/footer.html | 2 +- themes/blog/layouts/head.html | 71 +++++++++++++++++---------------- 4 files changed, 38 insertions(+), 38 deletions(-) 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 @@