aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts/types/taxonomies.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-25 15:33:27 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-25 15:38:50 +0100
commit97dc68e22e754d8e478beee590dbe9868171af50 (patch)
tree01876f9b236b0a4ba696d5b084bd766b69046494 /src/ts/types/taxonomies.ts
parent71942c86311a9d1ddf4ae486d811f8393786e855 (diff)
chore: add reading time in posts meta
Diffstat (limited to 'src/ts/types/taxonomies.ts')
-rw-r--r--src/ts/types/taxonomies.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ts/types/taxonomies.ts b/src/ts/types/taxonomies.ts
index 7d4ad3b..a62bef4 100644
--- a/src/ts/types/taxonomies.ts
+++ b/src/ts/types/taxonomies.ts
@@ -1,4 +1,4 @@
-import { ContentParts, Dates, Slug } from './app';
+import { ContentInfo, ContentParts, Dates, Slug } from './app';
import { ArticlePreview, RawArticlePreview } from './articles';
import { Cover, RawCover } from './cover';
import { SEO } from './seo';
@@ -12,13 +12,17 @@ type Taxonomy = {
databaseId: number;
dates: Dates;
id: string;
+ info: ContentInfo;
intro: string;
posts: ArticlePreview[];
seo: SEO;
title: string;
};
-type TaxonomyPreview = Pick<Taxonomy, 'databaseId' | 'id' | 'seo' | 'title'> & {
+type TaxonomyPreview = Pick<
+ Taxonomy,
+ 'databaseId' | 'id' | 'info' | 'seo' | 'title'
+> & {
slug: string;
};