From 09df33160fa432410ecede742857d18a21749b08 Mon Sep 17 00:00:00 2001 From: a74589669 <290198252@qq.com> Date: Thu, 3 Oct 2019 01:43:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8D=90=E9=92=B1=E7=95=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/Controllers/Blog.php | 13 +++- App/Views/blog/basic.html | 25 +++++-- App/Views/blog/res/pic/ali.jpg | Bin 0 -> 58143 bytes background.sql | 129 +++++++++++++++++++++++++++++++++ 4 files changed, 158 insertions(+), 9 deletions(-) create mode 100644 App/Views/blog/res/pic/ali.jpg create mode 100644 background.sql 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 @@
-