diff --git a/components/post-list-item.tsx b/components/post-list-item.tsx index 61675b7..fcb3835 100644 --- a/components/post-list-item.tsx +++ b/components/post-list-item.tsx @@ -18,8 +18,10 @@ export function PostListItem({ post }: Props) { post.description || post.custom_excerpt || post.body?.raw?.slice(0, 120); return ( -
  • -
  • + ); } diff --git a/components/post-list-with-controls.tsx b/components/post-list-with-controls.tsx index c154a70..2ae362f 100644 --- a/components/post-list-with-controls.tsx +++ b/components/post-list-with-controls.tsx @@ -11,6 +11,7 @@ import { } from '@fortawesome/free-solid-svg-icons'; import { siteConfig } from '@/lib/config'; import { PostListItem } from './post-list-item'; +import { TimelineWrapper } from './timeline-wrapper'; interface Props { posts: Post[]; @@ -151,11 +152,11 @@ export function PostListWithControls({ posts, pageSize }: Props) { 找不到符合關鍵字的文章,換個詞再試試? ) : ( -
    + {currentPosts.map((post) => ( ))} -
    + )} {totalPages > 1 && currentPosts.length > 0 && ( diff --git a/components/timeline-wrapper.tsx b/components/timeline-wrapper.tsx index 8dbedd8..3300b3e 100644 --- a/components/timeline-wrapper.tsx +++ b/components/timeline-wrapper.tsx @@ -9,7 +9,8 @@ interface TimelineWrapperProps { export function TimelineWrapper({ children, className }: TimelineWrapperProps) { return (
    -