From 5765d45beb90f3eafa86c2d6f4b896fe9be7c188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E5=AD=90?= Date: Tue, 9 Jul 2024 10:11:49 +0800 Subject: [PATCH] fix --- archives.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/archives.php b/archives.php index a7bba3b..7b350e5 100644 --- a/archives.php +++ b/archives.php @@ -42,7 +42,7 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> $stat = Typecho_Widget::widget('Widget_Stat'); Typecho_Widget::widget('Widget_Contents_Post_Recent', 'pageSize=' . $stat->publishedPostsNum)->to($archives); $year = 0; - $output = ' '; // Start archives container + $output = '
'; // Start archives container while ($archives->next()) { $year_tmp = date('Y', $archives->created); if ($year != $year_tmp) { @@ -50,11 +50,10 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> $output .= '
'; // 结束上一个年份的月份列表和包裹的div } $year = $year_tmp; - $output .= '
-

' . $year . '

'; // 开始新的年份div + $output .= ' +

' . $year . '

'; // 开始新的年份div } // 输出文章项 - $output .= '
'; $output .= ' '; - $output .= '
'; } - $output .= ' '; // End archives container + $output .= '
'; // End archives container echo $output; ?>