diff --git a/src/components/blog/PostPreview.astro b/src/components/blog/PostPreview.astro index 41ef444..fe81513 100644 --- a/src/components/blog/PostPreview.astro +++ b/src/components/blog/PostPreview.astro @@ -18,7 +18,7 @@ const { as: Tag = "div", post, withDesc = false } = Astro.props; {post.data.draft && (Draft) } - {post.data.fixedToTop && *} + {post.data.fixedToTop && *} {post.data.title} diff --git a/src/pages/index.astro b/src/pages/index.astro index bfb7de6..a5af511 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -33,18 +33,22 @@ const latestNotes = allNotes.sort(collectionDateSort).slice(0, MAX_NOTES); -
-

置顶文章

- +
+ ) + }

Posts