diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-25 15:33:27 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-25 15:38:50 +0100 |
| commit | 97dc68e22e754d8e478beee590dbe9868171af50 (patch) | |
| tree | 01876f9b236b0a4ba696d5b084bd766b69046494 /src/utils | |
| parent | 71942c86311a9d1ddf4ae486d811f8393786e855 (diff) | |
chore: add reading time in posts meta
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/helpers/format.ts | 8 |
1 files changed, 8 insertions, 0 deletions
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, |
