From 2416dffb33cbda86ef24037bcef5d74252556407 Mon Sep 17 00:00:00 2001 From: xieYj Date: Mon, 14 Feb 2022 16:53:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=93=E5=87=BA=E5=BD=92=E6=A1=A3=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archive.php | 547 ++++-------------------------------------- post.php | 9 +- static/css/matery.css | 2 +- 3 files changed, 49 insertions(+), 509 deletions(-) diff --git a/archive.php b/archive.php index 22fc418..d007fdb 100644 --- a/archive.php +++ b/archive.php @@ -31,533 +31,72 @@ $this->need('base/header.php'); }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

目前产出 122 篇博客,继续加油!

-

2022年

+

共100篇文章,继续加油吧!

+ widget('Widget_Contents_Post_Recent', 'pageSize=10000')->to($archives); + $year=0; $mon=0; $i=0; $j=0; + $output = '
'; + while($archives->next()): + $year_tmp = date('Y',$archives->created); + $mon_tmp = date('m',$archives->created); + $y=$year; $m=$mon; + if ($mon != $mon_tmp && $mon > 0) $output .= '
'; + if ($year != $year_tmp && $year > 0) $output .= '
'; + if ($year != $year_tmp) { + $year = $year_tmp; + $output .= '

'. $year .' 年

'; //输出年份 + } + if ($mon != $mon_tmp) { + $mon = $mon_tmp; + //$output .= '

'. $mon .' 月

+ '; + endwhile; + $output .= '
'; + echo $output; + ?>
- +
-
+ +
+
+
1 / 4
-
+ +
+ +
- - need('base/footer.php'); ?> diff --git a/post.php b/post.php index 4f612eb..bb04e8f 100644 --- a/post.php +++ b/post.php @@ -60,15 +60,15 @@ $this->need('base/article.style.php');
版权声明: 本博客所有文章除特別声明外,均采用 版权声明:   本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 !
@@ -81,7 +81,8 @@ $this->need('base/article.style.php'); $("html, body").animate({scrollTop: $("#reprint-statement").offset().top - 80}, 800); }
-