From 82ea163d471f2024c303b91199df9e1784f1fff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E6=B3=A5?= Date: Thu, 22 Jan 2026 20:06:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=86=E7=A0=81=E4=BF=9D=E6=8A=A4=E6=96=87?= =?UTF-8?q?=E7=AB=A0=E6=A0=87=E9=A2=98=E6=AD=A3=E5=B8=B8=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 密码保护文章标题正常显示 --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 9b4fa56..98c32cd 100755 --- a/index.php +++ b/index.php @@ -41,7 +41,7 @@ $posts[] = [ 'link' => $post->permalink, - 'title' => $post->title, + 'title' => $post->hidden ? '密码保护:' . $post->row['title'] : $post->row['title'], 'thumb' => $thumbnail, ]; } @@ -107,7 +107,7 @@ next()): ?>

- title();?> + hidden ? '密码保护:' . $this->row['title'] : $this->row['title'];?>

excerpt(80,'...'); ?>