diff --git a/App/Controllers/NewUi.php b/App/Controllers/NewUi.php index 92360b9..c151693 100644 --- a/App/Controllers/NewUi.php +++ b/App/Controllers/NewUi.php @@ -188,6 +188,7 @@ class NewUi extends Controller "group_types"=>$groupstype, "title"=>urldecode ($this->querys['title']), "doc"=>$doc[0], + "docs"=>$doc, "comments" => $doccoment, "comment_count" => count($doccoment), "doc_type"=>$doc[0]["type"], @@ -195,7 +196,6 @@ class NewUi extends Controller "topdoc"=>$top5, "openapi"=>\App\Config::OpenApiUrl(), "treedoc"=>$doc_all, - ]); else View::renderTemplate("/blog/article.html", [ @@ -209,6 +209,7 @@ class NewUi extends Controller "group_types"=>$groupstype, "title"=>urldecode ($this->querys['title']), "doc"=>$doc[0], + "docs"=>$doc, "comments" => $doccoment, "comment_count" => count($doccoment), "doc_type"=>$doc[0]["type"], @@ -216,7 +217,6 @@ class NewUi extends Controller "topdoc"=>$top5, "openapi"=>\App\Config::OpenApiUrl(), "treedoc"=>$doc_all, - ]); } else { View::renderTemplate("/blog/article.html", ['title' => 'test', 'index' => false]); diff --git a/App/Views/blog/index.html b/App/Views/blog/index.html index 31a66c0..1a043a8 100644 --- a/App/Views/blog/index.html +++ b/App/Views/blog/index.html @@ -53,6 +53,8 @@ + 展开