Remove readingTime

This commit is contained in:
prototypa
2023-01-23 18:00:10 -05:00
parent 7155c5ff23
commit b3f71b1297
5 changed files with 5 additions and 14 deletions

View File

@ -5,7 +5,7 @@ import { cleanSlug } from './permalinks';
const getNormalizedPost = async (post: CollectionEntry<'posts'>): Promise<Post> => {
const { id, slug = '', data } = post;
const { Content, remarkPluginFrontmatter } = await post.render();
const { Content } = await post.render();
const { tags = [], category = 'default', author = 'Anonymous', publishDate = new Date(), ...rest } = data;
@ -22,8 +22,6 @@ const getNormalizedPost = async (post: CollectionEntry<'posts'>): Promise<Post>
Content: Content,
// or 'body' in case you consume from API
readingTime: remarkPluginFrontmatter?.readingTime,
};
};