From 57238c98053ee2bc2cd7c2aec6acde262314a51a Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Sun, 15 Jun 2025 00:34:01 -0600 Subject: [PATCH] Fixxxx --- src/components/PostCard.astro | 96 +++++++++++++++++++---------------- 1 file changed, 53 insertions(+), 43 deletions(-) diff --git a/src/components/PostCard.astro b/src/components/PostCard.astro index 9be3872..75c505c 100644 --- a/src/components/PostCard.astro +++ b/src/components/PostCard.astro @@ -1,8 +1,8 @@ --- -import type { CollectionEntry } from 'astro:content'; -import { Icon } from 'astro-icon/components'; +import type { CollectionEntry } from "astro:content"; +import { Icon } from "astro-icon/components"; export interface Props { - post: CollectionEntry<'posts'>; + post: CollectionEntry<"posts">; } const { post } = Astro.props; @@ -10,46 +10,56 @@ const { title, description: blurb, pubDate } = post.data; const { slug } = post; --- -
-
-

- {title} -

+
+
+

+ {title} +

-

- {blurb || 'No description available.'} -

+

+ {blurb || "No description available."} +

-
- - - {new Date(pubDate).toLocaleDateString("en-us", { - month: "long", - day: "numeric", - year: "numeric", - })} - +
+ + + { + new Date(pubDate).toLocaleDateString("en-us", { + month: "long", + day: "numeric", + year: "numeric", + }) + } + +
+ + { + post.data.tags && post.data.tags.length > 0 && ( +
+ {post.data.tags.map((tag: string) => ( +
+ + {tag} +
+ ))} +
+ ) + } + +
+ + + +
- - {post.data.tags && post.data.tags.length > 0 && ( -
- {post.data.tags.map((tag: string) => ( - - - {tag} - - ))} -
- )} - -
- - - -
-
-
\ No newline at end of file +