From 604e507b311171f0f5d914ce28a3d42a2281a5e6 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 11 Jun 2025 16:34:34 +0000 Subject: refactor: update blog layout and components - Removed the PostSummary component and replaced it with a new PostElement component for better post display. - Introduced SocialLinks and Welcome sections to enhance the homepage layout. - Updated the index page to utilize the new sections, improving overall structure and user experience. --- src/components/PostSummary.astro | 49 ---------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 src/components/PostSummary.astro (limited to 'src/components/PostSummary.astro') diff --git a/src/components/PostSummary.astro b/src/components/PostSummary.astro deleted file mode 100644 index a3fbb29..0000000 --- a/src/components/PostSummary.astro +++ /dev/null @@ -1,49 +0,0 @@ ---- -import { type CollectionEntry } from "astro:content"; -import dayjs from "dayjs"; - -type Props = { - readonly post: CollectionEntry<"blog">; -}; - -const { post } = Astro.props; -const { remarkPluginFrontmatter } = await post.render(); -const formattedDate = dayjs(post.data.pubDate.toString()).format("MMMM DD, YYYY"); ---- - - - - -
-
- - - {remarkPluginFrontmatter.minutesRead} -
-

{post.data.title}

-

{post.data.description}

-
-
-- cgit v1.2.3