diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-11-29 12:28:03 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-29 13:47:07 +0100 |
| commit | dfa894b76ee3584bf169710c78c57330c5d6ee67 (patch) | |
| tree | 41380a93e2838452236a720f27f85fb14502f56a /src/types | |
| parent | 29a1dec4de0aa7ba64ef068a83b1b8589fbc3ad0 (diff) | |
fix(pages,services): make thematics & topics pages usable again
When I refactored the fetchers and convertors in #f111685 I forgot to
convert WPThematicPreview and WPTopicPreview so the thematics and
topics pages was broken.
I also:
* removed the ToC added by error in #70b4f63
* fix heading styles
* fix website url in topics pages
Diffstat (limited to 'src/types')
| -rw-r--r-- | src/types/data.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/types/data.ts b/src/types/data.ts index 7b9a879..21f773e 100644 --- a/src/types/data.ts +++ b/src/types/data.ts @@ -267,18 +267,18 @@ export type ProjectPreview = Omit<Project, 'meta'> & { meta: Omit<ProjectMeta, 'license' | 'repos'>; }; -export type ThematicMeta = PageMeta & { +export type ThematicMeta = Omit<PageMeta, 'wordsCount'> & { articles?: ArticlePreview[]; - topics?: PageLink[]; + relatedTopics?: PageLink[]; }; export type Thematic = Page & { meta: ThematicMeta; }; -export type TopicMeta = PageMeta & { +export type TopicMeta = Omit<PageMeta, 'wordsCount'> & { articles?: ArticlePreview[]; - thematics?: PageLink[]; + relatedThematics?: PageLink[]; website?: string; }; |
