diff --git a/themes/hexo/components/LatestPostsGroup.js b/themes/hexo/components/LatestPostsGroup.js index 5b0425ef..2adcac1a 100644 --- a/themes/hexo/components/LatestPostsGroup.js +++ b/themes/hexo/components/LatestPostsGroup.js @@ -18,9 +18,13 @@ const LatestPostsGroup = ({ posts }) => { const currentPath = useRouter().asPath const { locale } = useGlobal() - return <> -
-
{locale.COMMON.LATEST_POSTS}
+ return ( + <> +
+
+ + {locale.COMMON.LATEST_POSTS} +
{posts.map(post => { const selected = currentPath === `${BLOG.PATH}/article/${post.slug}` @@ -29,20 +33,34 @@ const LatestPostsGroup = ({ posts }) => { : `url("/${CONFIG_HEXO.HOME_BANNER_IMAGE}")` return ( - - -
-
-
-
{post.title}
-
{post.date?.start_date}
-
+ +
+
+
+
+
{post.title}
+
{post.date?.start_date}
+
) })} + ) } export default LatestPostsGroup