Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Post “test-1306” #2509

Open
wants to merge 3 commits into
base: production
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions _data/posts/test-1306.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion workspaces/cms-scripts/src/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading