Files
blog-nextjs/app/blog/page.tsx
2025-11-18 17:34:05 +08:00

25 lines
670 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { getAllPostsSorted } from '@/lib/posts';
import { PostListWithControls } from '@/components/post-list-with-controls';
export const metadata = {
title: '所有文章'
};
export default function BlogIndexPage() {
const posts = getAllPostsSorted();
return (
<section className="space-y-4">
<header className="space-y-1">
<h1 className="text-lg font-semibold text-slate-900 dark:text-slate-50">
</h1>
<p className="text-xs text-slate-500 dark:text-slate-400">
</p>
</header>
<PostListWithControls posts={posts} />
</section>
);
}