Allow child posts (or sub posts)
This commit is contained in:
@ -56,7 +56,7 @@ const getNormalizedPost = async (post: CollectionEntry<'post'>): Promise<Post> =
|
|||||||
metadata = {},
|
metadata = {},
|
||||||
} = data;
|
} = data;
|
||||||
|
|
||||||
const slug = cleanSlug(rawSlug.split('/').pop());
|
const slug = cleanSlug(rawSlug); // cleanSlug(rawSlug.split('/').pop());
|
||||||
const publishDate = new Date(rawPublishDate);
|
const publishDate = new Date(rawPublishDate);
|
||||||
const updateDate = rawUpdateDate ? new Date(rawUpdateDate) : undefined;
|
const updateDate = rawUpdateDate ? new Date(rawUpdateDate) : undefined;
|
||||||
const category = rawCategory ? cleanSlug(rawCategory) : undefined;
|
const category = rawCategory ? cleanSlug(rawCategory) : undefined;
|
||||||
|
Reference in New Issue
Block a user