Skip to content

fix(cms): publish new Markdown and MDX posts by default - #12

Merged
Chen017 merged 6 commits into
mainfrom
fix/cms-publish-by-default
Nov 8, 2026
Merged

Chen017 merged 6 commits into
mainfrom
fix/cms-publish-by-default

Conversation

@Chen017

@Chen017 Chen017 commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • Set draft: false as the default for newly created Markdown and MDX articles in the web CMS.
  • Keep manual drafts available: enabling the draft toggle before Publish → Publish now still saves an unpublished post.
  • Update CMS unit-test expectations and publishing instructions in Chinese/English README, CMS_SETUP.md, and MAINTENANCE.md.

Scope

  • Does not modify already saved articles, including src/content/posts/the-gravity-of-a-moment/index.md (currently draft: true).
  • Does not change the separate pnpm new-post CLI, which intentionally creates drafts.
  • No changes to public pages, motion, or deployment behavior.

Verification

  • Updated existing tests/cms-editor.test.mjs regression assertion to verify draft.default === false for both CMS collections.
  • Runtime test suite not executed in this chat; GitHub Actions validation should run on this PR.

@Chen017
Chen017 merged commit 5a9d7a2 into main Nov 8, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant