From f93ca48b2869e74c317ef357a41b952ff6ff8a8d Mon Sep 17 00:00:00 2001 From: Sat Naing Date: Sun, 11 Sep 2022 02:12:19 +0630 Subject: [PATCH] Update datetime codes with Datetime component --- src/components/Card.astro | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/components/Card.astro b/src/components/Card.astro index 3fdbd0e..36d5f51 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -1,6 +1,6 @@ --- import type { Frontmatter } from "src/pages/index.astro"; -import formatDatetime from "src/utils/formatDatetime"; +import Datetime from "./Datetime.astro"; export interface Props { href?: string; @@ -15,16 +15,7 @@ const { href, post, secHeading = true } = Astro.props; {secHeading ?

{post.title}

:

{post.title}

}
-
- - - {formatDatetime(post.datetime)} -
+

{post.description}