From c11f22784b0deace8768a295a1c9c3233f89189f Mon Sep 17 00:00:00 2001 From: Cali Date: Sat, 17 Jun 2023 22:29:53 +0800 Subject: [PATCH] fix: related posts layout --- app/(main)/blog/BlogPostPage.tsx | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/app/(main)/blog/BlogPostPage.tsx b/app/(main)/blog/BlogPostPage.tsx index 7ed18369..7d19afe4 100644 --- a/app/(main)/blog/BlogPostPage.tsx +++ b/app/(main)/blog/BlogPostPage.tsx @@ -1,6 +1,5 @@ 'use client' -import { Portal } from '@headlessui/react' import { motion } from 'framer-motion' import Image from 'next/image' import React from 'react' @@ -188,12 +187,12 @@ export function BlogPostPage({ {post.related && post.related.length > 0 ? (
-

+

相关文章

-
+
{post.related.map((post, idx) => ( - - - -
-
-
-
-
-
-
-
-
-
) }