--- import BaseLayout from '../layouts/BaseLayout.astro'; import { getPublishedPosts, groupByYear, formatDateShort } from '../lib/utils'; const all = await getPublishedPosts(); const years = groupByYear(all); const total = all.length; ---

归档

共 {total} 篇 · 时光轴回顾

{years.map(({ year, posts }) => (
{year} {posts.length} 篇
))}