diff --git a/src/components/HeroCard.astro b/src/components/HeroCard.astro index b407f8c..66675e8 100644 --- a/src/components/HeroCard.astro +++ b/src/components/HeroCard.astro @@ -1,5 +1,5 @@ --- -import markdownToText from "@helpers/markdownToText"; +import { markdownToText,readDuration } from "@helpers/markdown"; import { Card } from "./card"; import { useTranslatedPath, useTranslations } from "@i18n/utils"; import Image from "@components/Image.astro"; @@ -30,7 +30,7 @@ const link = translatePath(`/${collection}/${id.split("/")[0]}`); - {date && ()} + {(date || body)&& } { icon && diff --git a/src/components/SmallCard.astro b/src/components/SmallCard.astro index e4a44f4..d076683 100644 --- a/src/components/SmallCard.astro +++ b/src/components/SmallCard.astro @@ -1,5 +1,5 @@ --- -import markdownToText from "@helpers/markdownToText"; +import { markdownToText } from "@helpers/markdown"; import { useTranslatedPath } from "@i18n/utils"; import type { InferEntrySchema } from "astro:content"; diff --git a/src/components/card/Metadata.svelte b/src/components/card/Metadata.svelte index 2de7705..9034869 100644 --- a/src/components/card/Metadata.svelte +++ b/src/components/card/Metadata.svelte @@ -1,5 +1,6 @@