From e123fbe9e89237d7bf00a0498c3a66b943a3f820 Mon Sep 17 00:00:00 2001 From: liaoxin Date: Sun, 3 May 2026 22:06:59 +0800 Subject: [PATCH] =?UTF-8?q?v1.0=20=E2=80=94=20=E5=8A=9F=E8=83=BD=E5=AE=8C?= =?UTF-8?q?=E6=95=B4=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 首页: Hero + 编辑推荐 + 近笺卡片 + 微言摘要 - 笺文: 列表 + 分页(头像+作者+日期+浏览量) - 微言: 列表 + 评论折叠 - 拾影: 瀑布流 + 灯箱 - 文章详情: 封面 + 正文 + 评论 - 图片: 缩略图 soft crop,原图裁黑边 - 头像: 本地 SVG 替换 Gravatar - 导航: 激活状态圆点指示 - 安装: 自动创建页面和菜单 --- index.php | 2 +- page-articles.php | 13 ++++++++----- page-photos.php | 12 +++++------- single.php | 4 ++-- style.css | 37 ++++++++++++++++++++++++++++++++++--- 5 files changed, 50 insertions(+), 18 deletions(-) diff --git a/index.php b/index.php index 9262123..713f853 100644 --- a/index.php +++ b/index.php @@ -37,7 +37,7 @@ $posts_arr = array(); while (have_posts()) : the_post(); if ($count === 0) $pinned_id = get_the_ID(); - $posts_arr[] = array('id' => get_the_ID(), 'title' => get_the_title(), 'author_id' => get_the_author_meta('ID'), 'author_name' => get_the_author_meta('display_name'), 'date' => get_the_date('Y-m-d'), 'excerpt' => kjweji_excerpt(5, 200), 'views' => kjweji_get_views(), 'url' => get_permalink(), 'thumb' => has_post_thumbnail() ? get_the_post_thumbnail_url(null, 'kjweji-card') : ''); + $posts_arr[] = array('id' => get_the_ID(), 'title' => get_the_title(), 'author_id' => get_the_author_meta('ID'), 'author_name' => get_the_author_meta('display_name'), 'date' => get_the_date('Y-m-d'), 'excerpt' => kjweji_excerpt(5, 200), 'views' => kjweji_get_views(), 'url' => get_permalink(), 'thumb' => has_post_thumbnail() ? get_the_post_thumbnail_url(null, 'medium') : ''); $count++; endwhile; ?> diff --git a/page-articles.php b/page-articles.php index a4ee675..b6ac18d 100644 --- a/page-articles.php +++ b/page-articles.php @@ -23,11 +23,14 @@ $total_pages = ceil($total / $per_page);
have_posts()) : $query->the_post(); ?> - - +
+ + 'article-avatar')); ?> +
+
+ + 👁 +
diff --git a/page-photos.php b/page-photos.php index b189e4a..bd4ac13 100644 --- a/page-photos.php +++ b/page-photos.php @@ -22,13 +22,11 @@ $photo_query = new WP_Query(array(