Add canonical, tags, caregory..
This commit is contained in:
@ -5,13 +5,19 @@ export const getNormalizedPost = async (post) => {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
pubDate: frontmatter.pubDate,
|
pubDate: frontmatter.pubDate,
|
||||||
|
|
||||||
|
canonical: frontmatter.canonical,
|
||||||
|
slug: file.split("/").pop().split(".").shift(),
|
||||||
|
|
||||||
title: frontmatter.title,
|
title: frontmatter.title,
|
||||||
description: frontmatter.description,
|
description: frontmatter.description,
|
||||||
excerpt: frontmatter.excerpt,
|
|
||||||
body: compiledContent(),
|
body: compiledContent(),
|
||||||
image: frontmatter.image,
|
image: frontmatter.image,
|
||||||
|
|
||||||
|
excerpt: frontmatter.excerpt,
|
||||||
authors: frontmatter.authors,
|
authors: frontmatter.authors,
|
||||||
slug: file.split("/").pop().split(".").shift(),
|
category: frontmatter.category,
|
||||||
|
tags: frontmatter.tags,
|
||||||
readingTime: Math.ceil(getReadingTime(rawContent()).minutes),
|
readingTime: Math.ceil(getReadingTime(rawContent()).minutes),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user