From 606461f857e06b06429dd5738be642f9d1b459be Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 11 Jan 2022 16:20:59 +0100 Subject: chore: add title and meta desc to subjects and thematics --- src/utils/helpers/format.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/utils') diff --git a/src/utils/helpers/format.ts b/src/utils/helpers/format.ts index e628369..b79daef 100644 --- a/src/utils/helpers/format.ts +++ b/src/utils/helpers/format.ts @@ -84,6 +84,7 @@ export const getFormattedSubject = (rawSubject: RawSubject): Subject => { featuredImage, id, modified, + seo, title, } = rawSubject; @@ -103,6 +104,7 @@ export const getFormattedSubject = (rawSubject: RawSubject): Subject => { intro: contentParts.beforeMore, officialWebsite: acfSubjects.officialWebsite, posts, + seo, title, }; @@ -115,8 +117,16 @@ export const getFormattedSubject = (rawSubject: RawSubject): Subject => { * @returns A formatted thematic. */ export const getFormattedThematic = (rawThematic: RawThematic): Thematic => { - const { acfThematics, contentParts, databaseId, date, id, modified, title } = - rawThematic; + const { + acfThematics, + contentParts, + databaseId, + date, + id, + modified, + seo, + title, + } = rawThematic; const dates = { publication: date, @@ -132,6 +142,7 @@ export const getFormattedThematic = (rawThematic: RawThematic): Thematic => { id, intro: contentParts.beforeMore, posts, + seo, title, }; -- cgit v1.2.3