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/pages/article/[slug].tsx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/pages') diff --git a/src/pages/article/[slug].tsx b/src/pages/article/[slug].tsx index f43c9ee..c9aedb8 100644 --- a/src/pages/article/[slug].tsx +++ b/src/pages/article/[slug].tsx @@ -28,6 +28,7 @@ const SingleArticle: NextPageWithLayout = ({ post }) => { databaseId, dates, featuredImage, + info, intro, seo, topics, @@ -39,7 +40,9 @@ const SingleArticle: NextPageWithLayout = ({ post }) => { author, commentCount: comments.length, dates, + readingTime: info.readingTime, thematics, + wordsCount: info.wordsCount, }; const router = useRouter(); -- cgit v1.2.3