Add canonical, tags, caregory..

This commit is contained in:
prototypa
2022-08-26 18:14:18 -04:00
parent fbc6a92c96
commit b67eca0cc9

View File

@ -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),
};
};