need('part/head.php'); ?>
need('part/header.php'); ?>

-  title() ?>  -

publishedPostsNum)->to($archives); $year = 0; $mon = 0; $output = '
'; // Start archives container while ($archives->next()) { $year_tmp = date('Y', $archives->created); $mon_tmp = date('m', $archives->created); // 检查是否需要新的年份标题 if ($year != $year_tmp) { if ($year > 0) { $output .= ' '; // 结束上一个年份的月份列表和包裹的div } $year = $year_tmp; $mon = 0; // 重置月份 $output .= '

' . $year . '

'; // 开始新的年份div } // 输出文章项 $output .= ''; } // 循环后,确保所有标签都已经关闭 if ($mon > 0) { $output .= ''; // 结束最后一个月份的列表 } if ($year > 0) { $output .= '
'; // 结束最后一个年份的div } $output .= '
'; // End archives container echo $output; ?>

need('part/footer.php'); ?>