From dfa894b76ee3584bf169710c78c57330c5d6ee67 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 29 Nov 2023 12:28:03 +0100 Subject: 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 --- src/types/data.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/types') 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 & { meta: Omit; }; -export type ThematicMeta = PageMeta & { +export type ThematicMeta = Omit & { articles?: ArticlePreview[]; - topics?: PageLink[]; + relatedTopics?: PageLink[]; }; export type Thematic = Page & { meta: ThematicMeta; }; -export type TopicMeta = PageMeta & { +export type TopicMeta = Omit & { articles?: ArticlePreview[]; - thematics?: PageLink[]; + relatedThematics?: PageLink[]; website?: string; }; -- cgit v1.2.3