diff --git a/components/BlogStatBox.vue b/components/BlogStatBox.vue index f894e01..3753b0a 100644 --- a/components/BlogStatBox.vue +++ b/components/BlogStatBox.vue @@ -1,11 +1,9 @@ - + Stories + + + + {{ story.title }} + + + + {{ getPrettyDate(story) }} · {{ story.readingTime.text }} + + + + {{ tag }} + + + {{ story.description }} ... + + + Continue reading → + + + + + diff --git a/shared/types.d.ts b/shared/types.d.ts index fd6c151..8ac7d27 100644 --- a/shared/types.d.ts +++ b/shared/types.d.ts @@ -11,7 +11,7 @@ interface BlogParsedContent extends ParsedContent { date: Date; title: string; tags: string[]; - description?: Record; + description?: string; readingTime: ReadingTime; } @@ -19,5 +19,6 @@ interface StoryParsedContent extends ParsedContent { date: Date; title: string; tags: string[]; + description?: string; readingTime: ReadingTime; }
+ {{ getPrettyDate(story) }} · {{ story.readingTime.text }} +
{{ story.description }} ...