diff --git a/app/index/controller/Index.php b/app/index/controller/Index.php index 7c93fb5..8546f71 100644 --- a/app/index/controller/Index.php +++ b/app/index/controller/Index.php @@ -49,7 +49,10 @@ class Index extends Common } - $list_post = $model_post->paginate(['url' => 'Index/index']); + $list_post = $model_post->paginate([ + 'url' => 'Index/index', + 'query' => $this->request->get() + ]); View::assign('current_category', $current_category); View::assign('sub_category', $sub_category); diff --git a/public/static/css/index.articles.css b/public/static/css/index.articles.css index be30e3a..ecb629c 100644 --- a/public/static/css/index.articles.css +++ b/public/static/css/index.articles.css @@ -205,4 +205,8 @@ .layui-container { width: 1280px; } +} + +a.post-item:visited{ + color: #bbb; } \ No newline at end of file