Article Editor
Write and edit blog posts, documentation, and MDX content with a rich text editor. No code required.
The Article Editor is a rich text editor for creating blog posts, documentation, and other long-form content. Write in a familiar word processor interface while Pagesmith handles the MDX output.
Opening the Article Editor
- Navigate to a content file (blog post, doc page)
- Click the Article tab
- The rich text editor opens with your content
Or create new content:
- Click + New Article
- Choose the content type (post, doc, page)
- Start writing
Writing Content
Formatting
The editor toolbar includes:
- Headings — H1, H2, H3
- Bold — Cmd/Ctrl + B
- Italic — Cmd/Ctrl + I
- Code — Inline code
- Links — Cmd/Ctrl + K
- Lists — Bullet and numbered
- Quotes — Block quotes
Markdown Shortcuts
Type markdown directly for speed:
| Type | Result |
|---|---|
## Heading | H2 heading |
**bold** | Bold text |
*italic* | Italic text |
- item | Bullet list |
1. item | Numbered list |
`code` | Inline code |
> quote | Block quote |
Keyboard Shortcuts
| Action | Shortcut |
|---|---|
| Bold | Cmd/Ctrl + B |
| Italic | Cmd/Ctrl + I |
| Link | Cmd/Ctrl + K |
| Undo | Cmd/Ctrl + Z |
| Redo | Cmd/Ctrl + Shift + Z |
| Save | Cmd/Ctrl + S |
Adding Media
Images
- Click the image icon in toolbar
- Upload an image or paste URL
- Add alt text for accessibility
- Optional: Add caption
Images are automatically optimized and stored in your project.
Code Blocks
- Type ``` or click code block icon
- Select the language for syntax highlighting
- Enter your code
- Code is displayed with proper formatting
Supported languages: JavaScript, TypeScript, Python, HTML, CSS, Bash, JSON, and more.
Videos
- Click video icon
- Paste YouTube or Vimeo URL
- Video embeds responsively
MDX Components
Use custom components for richer content:
Callouts
<Callout type="info"> This is an informational note. </Callout> <Callout type="warning"> Be careful with this step. </Callout> <Callout type="tip"> Here's a helpful tip. </Callout>
Tabs
<Tabs>
<Tab title="React">
React code example
</Tab>
<Tab title="Vue">
Vue code example
</Tab>
</Tabs>
Accordions
<Accordion title="Click to expand"> Hidden content that expands when clicked. </Accordion>
Cards
<Card title="Feature Name" href="/link"> Description of the feature. </Card>
Frontmatter
Each article has metadata in the frontmatter:
--- title: "Article Title" description: "Brief description for SEO" publishedAt: 2024-01-15 author: "Your Name" category: "tutorials" tags: ["tag1", "tag2"] image: "/images/cover.jpg" draft: false ---
Edit frontmatter by clicking the Settings icon or editing YAML directly.
Draft and Publish
Saving Drafts
All changes save automatically. Your work is never lost.
Draft Status
Set draft: true in frontmatter to hide from public listings.
Publishing
- Remove
draft: trueor set tofalse - Publish your site
- Article is now live
SEO Settings
For each article, set:
- Title — Browser tab and search result title
- Description — Search result description (150 chars)
- Canonical URL — If content exists elsewhere
- OG Image — Social sharing preview
Access via Settings panel or frontmatter.
Organizing Content
Categories
Assign articles to categories:
category: "tutorials"
Tags
Add multiple tags:
tags: ["react", "beginners", "how-to"]
Series
Group related articles:
series: "Getting Started" seriesOrder: 1
Content Collections
Pagesmith organizes content in Astro collections:
src/content/ ├── blog/ # Blog posts │ ├── post-1.mdx │ └── post-2.mdx ├── docs/ # Documentation │ ├── getting-started.mdx │ └── api-reference.mdx └── config.ts # Collection schemas
Each collection can have its own schema for consistent frontmatter.
Tips
Write in Markdown, Preview Rich
The editor renders rich preview, but you can switch to raw MDX view anytime.
Use Templates
Create article templates for consistent formatting:
- Tutorial template
- Update/changelog template
- Review template
Batch Editing
Edit frontmatter across multiple articles from the content list view.
Related Docs
- Documentation & Blog Use Case — Full tutorial
- Content Sites for SEO — SEO strategy
- SEO Best Practices — Optimize your content