summaryrefslogtreecommitdiffstats
path: root/src/utils/helpers/format.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/helpers/format.ts')
-rw-r--r--src/utils/helpers/format.ts15
1 files changed, 13 insertions, 2 deletions
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,
};