From 9b8eced56f5e029bc92ad59b47cb9fd146b5e1d2 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 11 Jan 2022 12:26:30 +0100 Subject: chore(meta): display subjects instead of thematics on Thematic pages --- src/ts/types/articles.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ts/types') diff --git a/src/ts/types/articles.ts b/src/ts/types/articles.ts index 44c1d79..01a4c38 100644 --- a/src/ts/types/articles.ts +++ b/src/ts/types/articles.ts @@ -28,6 +28,7 @@ export type ArticleMeta = { author?: ArticleAuthor; commentCount?: number; dates?: Dates; + subjects?: SubjectPreview[]; thematics?: ThematicPreview[]; website?: string; }; @@ -61,14 +62,14 @@ export type RawArticle = Pick< export type ArticlePreview = Pick< Article, - 'commentCount' | 'dates' | 'id' | 'intro' | 'thematics' | 'title' + 'commentCount' | 'dates' | 'id' | 'intro' | 'subjects' | 'thematics' | 'title' > & { featuredImage: Cover; slug: string }; export type RawArticlePreview = Pick< Article, 'commentCount' | 'id' | 'title' > & { - acfPosts: Pick; + acfPosts: ACFPosts; contentParts: Pick; date: string; featuredImage: RawCover; -- cgit v1.2.3