diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-14 17:16:53 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-02-14 17:30:37 +0100 |
| commit | 916c512bf5a31041ac87296e1382f84c9367b955 (patch) | |
| tree | 9541124a1339ce6e12f46983fce875b41d1fff00 /src/ts/types/blog.ts | |
| parent | 79f7688703fe42ce87c92567f5bc92b6691eaa20 (diff) | |
chore: display initial posts, thematics & topics
By fetching the data in getStaticProps, I can display the data even
for users with Javascript disabled.
Diffstat (limited to 'src/ts/types/blog.ts')
| -rw-r--r-- | src/ts/types/blog.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ts/types/blog.ts b/src/ts/types/blog.ts index 7325ddf..8b48264 100644 --- a/src/ts/types/blog.ts +++ b/src/ts/types/blog.ts @@ -1,5 +1,6 @@ import { PageInfo, Slug } from './app'; import { ArticlePreview, RawArticlePreview } from './articles'; +import { ThematicPreview, TopicPreview } from './taxonomies'; export type PostsList = { posts: ArticlePreview[]; @@ -25,5 +26,8 @@ export type AllPostsSlug = { }; export type BlogPageProps = { - fallback: PostsList; + allThematics: ThematicPreview[]; + allTopics: TopicPreview[]; + firstPosts: PostsList; + totalPosts: number; }; |
