diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-07 12:33:35 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-07 12:34:34 +0100 |
| commit | b405ddb76f217ccf7828b422ec4c0f0e15b7dee4 (patch) | |
| tree | b6313b139f018f09d9bb88dedb7c5b3e4d84ef76 /src/ts/types/taxonomies.ts | |
| parent | b4e12398fbeb642c12649dcccdf4d5cdefa471e3 (diff) | |
chore: add a widget to list all blog topics
Diffstat (limited to 'src/ts/types/taxonomies.ts')
| -rw-r--r-- | src/ts/types/taxonomies.ts | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/ts/types/taxonomies.ts b/src/ts/types/taxonomies.ts index 32e1f15..0b2d696 100644 --- a/src/ts/types/taxonomies.ts +++ b/src/ts/types/taxonomies.ts @@ -37,6 +37,12 @@ export type SubjectPreview = TaxonomyPreview & { featuredImage: Cover; }; +export type AllSubjects = { + subjects: { + nodes: SubjectPreview[]; + }; +}; + export type RawSubject = SubjectPreview & { acfSubjects: { officialWebsite: string; @@ -58,6 +64,10 @@ export type AllSubjectsSlug = { }; }; +export type SubjectProps = { + subject: Subject; +}; + //============================================================================== // Thematics //============================================================================== @@ -91,10 +101,6 @@ export type AllThematicsSlug = { }; }; -export type SubjectProps = { - subject: Subject; -}; - export type ThematicProps = { thematic: Thematic; }; |
