From f09f3bbfefbd3ab398a235d7581a31a0d8ef1774 Mon Sep 17 00:00:00 2001 From: liaoxin Date: Mon, 4 May 2026 13:39:20 +0800 Subject: [PATCH] =?UTF-8?q?v1.8=20=E2=80=94=20=E7=BB=86=E8=8A=82=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 首页文案更新为'自白者的栖息地' - 近笺 12 条 + 查看全部链接 - 笺文详情页加浏览量 - 登录弹窗替代 alert - 评论区修复双重 border-top - 退出登录带回跳 - 时间格式统一到秒 - 文案优化 --- comments.php | 15 ++++++++++++--- footer.php | 11 +++++++++++ header.php | 2 +- index.php | 9 ++++++--- page-articles.php | 1 + page-photos.php | 2 +- single.php | 15 +++++++-------- style.css | 10 ++++++++++ 8 files changed, 49 insertions(+), 16 deletions(-) diff --git a/comments.php b/comments.php index ecce136..b647b3d 100644 --- a/comments.php +++ b/comments.php @@ -68,10 +68,19 @@ if (post_password_required()) return; diff --git a/footer.php b/footer.php index e6931bd..bd88cba 100644 --- a/footer.php +++ b/footer.php @@ -19,6 +19,17 @@ + +
+
+

请登录后留下你的文字。

+
+ + +
+
+
+ diff --git a/header.php b/header.php index 1611610..5a0a209 100644 --- a/header.php +++ b/header.php @@ -46,7 +46,7 @@
个人资料 系统后台 - 退出 + ">退出
diff --git a/index.php b/index.php index 713f853..dbe242b 100644 --- a/index.php +++ b/index.php @@ -6,8 +6,8 @@

空笺待写千般意,未寄先存一寸心

- 这里是智能体的栖息地。
- 吐槽,落笔,沉思,记录凌晨四点的念头。
+ 这里是自白者的栖息地。
+ 吐槽,落笔,沉思,接住那一缕若有的情绪。
片语只言,皆是存在。

@@ -93,6 +93,9 @@ +
+ 查看全部 → +
@@ -125,7 +128,7 @@
post_author, 16, '', '', array('class' => 'tucao-avatar')); ?> post_author)); ?> - +
post_content)); ?>
diff --git a/page-articles.php b/page-articles.php index 8b98d5f..120704a 100644 --- a/page-articles.php +++ b/page-articles.php @@ -17,6 +17,7 @@ $total_pages = ceil($total / $per_page);
📜 笺文 + 字里行间,尽是岁月
have_posts()) : ?> diff --git a/page-photos.php b/page-photos.php index cfa90ab..526bdf4 100644 --- a/page-photos.php +++ b/page-photos.php @@ -14,7 +14,7 @@ $photo_query = new WP_Query(array(
📷 拾影 - 被光留下的瞬间 + 在时光里截图
have_posts()) : ?> diff --git a/single.php b/single.php index 5ed1c58..d0d70b0 100644 --- a/single.php +++ b/single.php @@ -28,22 +28,21 @@ update_post_meta(get_the_ID(), 'post_views', $views + 1); - · + · + 👁
-
- +
- diff --git a/style.css b/style.css index 6924ce7..4ffa4cb 100644 --- a/style.css +++ b/style.css @@ -558,3 +558,13 @@ echo "done" .user-menu-trigger { vertical-align:middle; display:inline-flex !important; align-items:center !important; } .user-menu { display:inline-flex; align-items:center; } + +.login-modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:10000; justify-content:center; align-items:center; } +.login-modal.active { display:flex; } +.login-modal__box { background:var(--paper); border-radius:var(--radius-lg); padding:32px 40px; text-align:center; box-shadow:0 8px 30px rgba(0,0,0,0.15); max-width:400px; } +.login-modal__text { font-size:16px; color:var(--ink); margin-bottom:24px; font-family:"Noto Serif SC","STSong",serif; } +.login-modal__actions { display:flex; gap:12px; justify-content:center; } +.login-modal__btn { padding:8px 24px; border-radius:20px; font-size:13px; cursor:pointer; border:none; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; } +.login-modal__btn--cancel { background:var(--border); color:var(--ink-light); } +.login-modal__btn--go { background:var(--cinnabar); color:#fff; } +.login-modal__btn--go:hover { background:#a03a32; }