From 916c512bf5a31041ac87296e1382f84c9367b955 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 14 Feb 2022 17:16:53 +0100 Subject: chore: display initial posts, thematics & topics By fetching the data in getStaticProps, I can display the data even for users with Javascript disabled. --- src/ts/types/taxonomies.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ts/types/taxonomies.ts') diff --git a/src/ts/types/taxonomies.ts b/src/ts/types/taxonomies.ts index a62bef4..8a0fcc7 100644 --- a/src/ts/types/taxonomies.ts +++ b/src/ts/types/taxonomies.ts @@ -71,6 +71,7 @@ export type AllTopicsSlug = { }; export type TopicProps = { + allTopics: TopicPreview[]; topic: Topic; }; @@ -108,5 +109,6 @@ export type AllThematicsSlug = { }; export type ThematicProps = { + allThematics: ThematicPreview[]; thematic: Thematic; }; -- cgit v1.2.3