From b67eca0cc969f780c0e025d9892f52cce6ae154d Mon Sep 17 00:00:00 2001 From: prototypa Date: Fri, 26 Aug 2022 18:14:18 -0400 Subject: [PATCH] Add canonical, tags, caregory.. --- src/utils/getNormalizedPost.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/utils/getNormalizedPost.js b/src/utils/getNormalizedPost.js index d649c70..6e06b82 100644 --- a/src/utils/getNormalizedPost.js +++ b/src/utils/getNormalizedPost.js @@ -5,13 +5,19 @@ export const getNormalizedPost = async (post) => { return { pubDate: frontmatter.pubDate, + + canonical: frontmatter.canonical, + slug: file.split("/").pop().split(".").shift(), + title: frontmatter.title, description: frontmatter.description, - excerpt: frontmatter.excerpt, body: compiledContent(), image: frontmatter.image, + + excerpt: frontmatter.excerpt, authors: frontmatter.authors, - slug: file.split("/").pop().split(".").shift(), + category: frontmatter.category, + tags: frontmatter.tags, readingTime: Math.ceil(getReadingTime(rawContent()).minutes), }; };