Getting started / SERIES 03
Write, Preview and Publish an Article
Create a Markdown draft and decide what readers can see
Create your first draft from the template root.
Create a draftsh
pnpm new article first-noteFill in the frontmatter
Article metadatayaml
id: first-notetype: articletitle: My first notedate: '2026-11-06'status: draftvisibility: privatesummary: A short explanation of what I learned.Write below the frontmatter and keep the ID stable. A writing checklist demonstrates a relative attachment.
Preview locally
Stop the running development server. In PowerShell, set $env:CLARISLET_DRAFTS='1' and run pnpm dev. Remove the variable when returning to normal development.
Choose a visibility
| Visibility | What visitors can see |
|---|---|
| public | Full article |
| private | No public entry |
| preview | Metadata and a limited opening |
Use status: ready to release an eligible entry. For a partial preview, set ratio explicitly. The reading exercise shows the 10% case. Committed Markdown in a public repository can be read directly.
Continue in topic order