diff --git a/_data/posts/test-1306.yml b/_data/posts/test-1306.yml new file mode 100644 index 0000000000..ad48f8cf3e --- /dev/null +++ b/_data/posts/test-1306.yml @@ -0,0 +1,12 @@ +id: d86b58fb-384d-437b-8744-bc27fc34e82d +post_type: article +isFeatured: true +title: Test 1306 +published_date: 2024-02-14T07:29:08.465Z +category: + - a6270a0b-ff84-4a7a-bd07-5183e0f2e857 +topic: + - decentralization +blocks: + - type: markdown + body: hbdbhdg diff --git a/workspaces/cms-scripts/src/sitemap.ts b/workspaces/cms-scripts/src/sitemap.ts index b15be1b21e..cff018207c 100644 --- a/workspaces/cms-scripts/src/sitemap.ts +++ b/workspaces/cms-scripts/src/sitemap.ts @@ -125,7 +125,7 @@ const parsePosts = async () => { const { filenameMap } = await getPosts(); const categories: string[] = []; - filenameMap.forEach(({ locale, category: fileCategories, slug, published_date, post_type, video }) => { + filenameMap.forEach(({ locale, category: fileCategories = [], slug, published_date, post_type, video }) => { for (const category of fileCategories) { if (!categories.includes(category)) { categories.push(category);