diff --git a/App/Controllers/Blog.php b/App/Controllers/Blog.php index 732b270..940d700 100644 --- a/App/Controllers/Blog.php +++ b/App/Controllers/Blog.php @@ -39,15 +39,17 @@ class Blog extends Controller $content = $markdown->text($doc[0]['content']); echo ''; if(\App\Config::$DEBUG) - View::renderTemplate("/blog/basic.html",['title'=>rawurldecode( $this->querys['title']), + View::renderTemplate("/blog/basic.html", + ['title'=>rawurldecode( $this->querys['title']), 'index'=>false, 'content'=>$content, 'type' => $this->querys['type'], 'debug' => true, - ]); + 'article'=>true, + ]); else View::renderTemplate("/blog/basic.html",['title'=>rawurldecode( $this->querys['title']), - 'index'=>false, + 'article'=>true, 'content'=>$content, 'type' => $this->querys['type']]); @@ -55,6 +57,11 @@ class Blog extends Controller View::renderTemplate("/blog/basic.html",['title'=>'test','index'=>false]); } } + function donateAction(){ + View::renderTemplate("/blog/basic.html", + ['donate'=>true]); + + } function jsAction(){ //print_r($_SERVER); } diff --git a/App/Views/blog/basic.html b/App/Views/blog/basic.html index ea02921..f799404 100644 --- a/App/Views/blog/basic.html +++ b/App/Views/blog/basic.html @@ -95,12 +95,15 @@ border: #0b93d5 solid 1px; border-radius: 1px; } +ul li a{ + color: white; +}
-
这是一个纯手敲出来的博客
+
@@ -126,7 +132,7 @@
-