diff options
Diffstat (limited to 'src/pages')
-rw-r--r-- | src/pages/index.astro | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/pages/index.astro b/src/pages/index.astro index 56ccdff..87bd89c 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,17 +1,10 @@ --- -import { getCollection } from "astro:content"; import Layout from "../layouts/BaseLayout.astro"; -import PostSummary from "../components/PostSummary.astro"; - -const posts = await getCollection("blog", ({ data }) => { - return data.draft !== true; -}); - -posts.sort((a, b) => b.data.pubDate.getTime() - a.data.pubDate.getTime()); +import SocialLinksSection from "../components/Sections/SocialLinks.astro"; +import WelcomeSection from "../components/Sections/Welcome.astro"; --- <Layout> - <section style={{ "margin-top": "3rem" }}> - {posts.map((post) => <PostSummary post={post} />)} - </section> + <WelcomeSection /> + <SocialLinksSection /> </Layout> |