Allow child posts (or sub posts)

This commit is contained in:
prototypa
2023-08-07 08:21:02 -04:00
parent 76e55f7115
commit 3ef024f149

View File

@ -56,7 +56,7 @@ const getNormalizedPost = async (post: CollectionEntry<'post'>): Promise<Post> =
metadata = {},
} = data;
const slug = cleanSlug(rawSlug.split('/').pop());
const slug = cleanSlug(rawSlug); // cleanSlug(rawSlug.split('/').pop());
const publishDate = new Date(rawPublishDate);
const updateDate = rawUpdateDate ? new Date(rawUpdateDate) : undefined;
const category = rawCategory ? cleanSlug(rawCategory) : undefined;