diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-11 12:26:30 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-11 15:32:59 +0100 |
| commit | 9b8eced56f5e029bc92ad59b47cb9fd146b5e1d2 (patch) | |
| tree | b0e6088bc77bd676555925d5d85ebfcd71b14e12 /src/ts | |
| parent | 98dd62e28793bad9c121a9f16b11a10222a41c50 (diff) | |
chore(meta): display subjects instead of thematics on Thematic pages
Diffstat (limited to 'src/ts')
| -rw-r--r-- | src/ts/types/articles.ts | 5 |
1 files changed, 3 insertions, 2 deletions
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, 'postsInThematic'>; + acfPosts: ACFPosts; contentParts: Pick<ContentParts, 'beforeMore'>; date: string; featuredImage: RawCover; |
