From 97dc68e22e754d8e478beee590dbe9868171af50 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 25 Jan 2022 15:33:27 +0100 Subject: chore: add reading time in posts meta --- src/utils/helpers/format.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/utils/helpers/format.ts') diff --git a/src/utils/helpers/format.ts b/src/utils/helpers/format.ts index 0ed1ab5..2be1844 100644 --- a/src/utils/helpers/format.ts +++ b/src/utils/helpers/format.ts @@ -27,6 +27,7 @@ export const getFormattedPostPreview = (rawPost: RawArticlePreview) => { date, featuredImage, id, + info, modified, slug, title, @@ -45,6 +46,7 @@ export const getFormattedPostPreview = (rawPost: RawArticlePreview) => { dates, featuredImage: featuredImage ? featuredImage.node : null, id, + info, intro: contentParts.beforeMore, slug, topics, @@ -83,6 +85,7 @@ export const getFormattedTopic = (rawTopic: RawTopic): Topic => { date, featuredImage, id, + info, modified, seo, title, @@ -101,6 +104,7 @@ export const getFormattedTopic = (rawTopic: RawTopic): Topic => { dates, featuredImage: featuredImage ? featuredImage.node : null, id, + info, intro: contentParts.beforeMore, officialWebsite: acfTopics.officialWebsite, posts, @@ -123,6 +127,7 @@ export const getFormattedThematic = (rawThematic: RawThematic): Thematic => { databaseId, date, id, + info, modified, seo, title, @@ -140,6 +145,7 @@ export const getFormattedThematic = (rawThematic: RawThematic): Thematic => { databaseId, dates, id, + info, intro: contentParts.beforeMore, posts, seo, @@ -225,6 +231,7 @@ export const getFormattedPost = (rawPost: RawArticle): Article => { date, featuredImage, id, + info, modified, seo, title, @@ -250,6 +257,7 @@ export const getFormattedPost = (rawPost: RawArticle): Article => { dates, featuredImage: featuredImage ? featuredImage.node : null, id, + info, intro: contentParts.beforeMore, seo, topics, -- cgit v1.2.3