diff --git a/components/HomeStatBox.vue b/components/HomeStatBox.vue index 010beff..6320005 100644 --- a/components/HomeStatBox.vue +++ b/components/HomeStatBox.vue @@ -1,30 +1,21 @@ diff --git a/components/PostPreviewCard.vue b/components/PostPreviewCard.vue index 1b2dca6..1cfdbf4 100644 --- a/components/PostPreviewCard.vue +++ b/components/PostPreviewCard.vue @@ -2,15 +2,15 @@ import type { StoryParsedContent, BlogParsedContent } from "@/shared/types"; import { calcReadingTime } from "@/shared/metadata"; -const { post, type, highlighttags } = defineProps<{ +const props = defineProps<{ post: StoryParsedContent | BlogParsedContent; type: "stories" | "blog"; highlighttags?: string[]; }>(); -const readingTime = calcReadingTime(post); +const readingTime = calcReadingTime(props.post); const descText = - type === "stories" + props.type === "stories" ? `${readingTime.words.total} words` : `${readingTime.minutes} min read`; diff --git a/components/ProjectCard.vue b/components/ProjectCard.vue index c5d1c84..0c6d327 100644 --- a/components/ProjectCard.vue +++ b/components/ProjectCard.vue @@ -1,12 +1,14 @@