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); }
-