From 97dc68e22e754d8e478beee590dbe9868171af50 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 25 Jan 2022 15:33:27 +0100 Subject: chore: add reading time in posts meta --- src/ts/types/app.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ts/types/app.ts') diff --git a/src/ts/types/app.ts b/src/ts/types/app.ts index a58f710..ddd64d1 100644 --- a/src/ts/types/app.ts +++ b/src/ts/types/app.ts @@ -61,6 +61,11 @@ export type ButtonKind = 'primary' | 'secondary' | 'tertiary'; export type ButtonPosition = 'left' | 'right' | 'center'; +export type ContentInfo = { + readingTime: number; + wordsCount: number; +}; + export type ContentParts = { afterMore: string; beforeMore: string; @@ -110,6 +115,7 @@ export type Project = { intro: string; meta: ProjectMeta; slug: string; + tagline?: string; title: string; seo: { title: string; -- cgit v1.2.3