diff --git a/_data/announcements/product-update-april-2023.yml b/_data/announcements/product-update-april-2023.yml deleted file mode 100644 index e08c4e1c83c..00000000000 --- a/_data/announcements/product-update-april-2023.yml +++ /dev/null @@ -1,10 +0,0 @@ -id: e6336705-4eae-4c16-b26e-0664115b0f98 -title: "Product update: April 2023" -description: Aliquet nec orci mattis amet quisque ullamcorper neque, nibh sem. - At arcu, sit dui mi, nibh dui, diam eget. -image: /assets/10_-first-steps-to-contribute-to-kakarot-zkevm.png -badge: building-now -blocks: - - type: markdown - body: Aliquet nec orci mattis amet quisque ullamcorper neque, nibh sem. At arcu, - sit dui mi, nibh dui, diam eget. diff --git a/workspaces/cms-scripts/src/index.ts b/workspaces/cms-scripts/src/index.ts index 6f07c48d3a7..7e80a158b67 100644 --- a/workspaces/cms-scripts/src/index.ts +++ b/workspaces/cms-scripts/src/index.ts @@ -224,11 +224,14 @@ for (const data of roadmapPosts.filenameMap.values()) { ); } -for (const data of announcements.filenameMap.values()) { - await write( - `public/data/announcements/${data.locale}/${data.slug}.json`, - data -); + +if (announcements.filenameMap.size > 0) { + for (const data of announcements.filenameMap.values()) { + await write( + `public/data/announcements/${data.locale}/${data.slug}.json`, + data + ); + } } for (const locale of locales) {