diff --git a/src/components/home/post/PostItem.js b/src/components/home/post/PostItem.js index 47b178e..fe60995 100644 --- a/src/components/home/post/PostItem.js +++ b/src/components/home/post/PostItem.js @@ -65,7 +65,13 @@ const PostItem = ({ post }) => { {isLink && ( -
{formattedContent}
+
+ {content.replace(/\\r\\n/g, ' ').slice(0, 360)} + +

+ {content.length >= 360 && '더보기.....'} +

+
)} {!isLink &&
{formattedContent}
}