From cf85f107245fd40f7b453d30790a8649eb972083 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 17 Sep 2024 22:27:55 +0000 Subject: Update launch configuration and enhance PostSummary component layout --- src/components/PostSummary.astro | 50 ++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 28 deletions(-) (limited to 'src/components/PostSummary.astro') diff --git a/src/components/PostSummary.astro b/src/components/PostSummary.astro index 2f98130..59d7683 100644 --- a/src/components/PostSummary.astro +++ b/src/components/PostSummary.astro @@ -7,45 +7,39 @@ type Props = { }; const { post } = Astro.props; +const { remarkPluginFrontmatter } = await post.render(); +const formattedDate = dayjs(post.data.pubDate.toString()).format("MMMM DD, YYYY"); --- -
-

{post.data.title}

-
- - -
-

{post.data.description}

- Read More -
+ +
+
+ + + {remarkPluginFrontmatter.minutesRead} +
+

{post.data.title}

+

{post.data.description}

+
+
-- cgit v1.2.3