Content Editor
Simple, focused interface for writing and editing blog posts and pages.
The Content Editor is WP2Astro's simplified editing interface, designed specifically for content creators, writers, and non-technical users. It focuses on what matters most: creating great content.
What is Content Editor?
Content Editor is a streamlined mode that:
- Hides technical files and complexity
- Shows only blog posts and pages
- Provides WYSIWYG editing features
- Makes frontmatter editing visual
- Auto-saves everything
- Requires no code knowledge
[screenshot of content editor]
Perfect for bloggers, writers, content managers, and anyone who just wants to write.
Accessing Content Editor
From Dashboard
- Go to your WP2Astro dashboard
- Find your project
- Ensure codespace is "Running"
- Click the "Content" button
vs Dev Mode
Choose Content Editor when you want to:
- Write or edit blog posts
- Update page content
- Add new articles
- Edit metadata (titles, dates, authors)
Choose Dev Mode when you need to:
- Modify code or components
- Change layouts or styles
- Configure the site
- Use the terminal
Interface Overview
The Content Editor has a clean, focused layout:
+------------------------------------------------+
| Header (Save status, preview, help) |
+----------+-------------------------------------+
| | |
| Content | Editor Panel |
| List | - Frontmatter Editor |
| | (Visual form) |
| | - Content Editor |
| | (Markdown/WYSIWYG) |
| | |
+----------+-------------------------------------+
Left Panel: Content List
Browse your content:
- Blog Posts: All posts in
src/content/blog/ - Pages: Files in
src/pages/(optional) - Search bar to filter
- Click to open and edit
Right Panel: Editor
Two sections:
- Frontmatter Editor: Visual form for metadata
- Content Editor: Where you write your post
Frontmatter Editor
Frontmatter is the metadata at the top of each post. Instead of editing YAML code, you get a visual form:
Common Fields
Title
Input: "My First Blog Post"
The post title shown in listings and browser tabs.
Description
Textarea: "A brief summary of my post"
Used for SEO and post previews.
Publish Date
Date Picker: 2024-02-20
When the post was published.
Author
Input: "Your Name"
Who wrote the post.
Tags
Multi-input: "astro", "tutorial", "web-dev"
Topics and keywords for the post.
Categories
Multi-input: "Programming", "Tutorials"
Post categories for organization.
Featured Image
Image Picker: Select from media or upload
Main image for the post.
Draft Status
Toggle: Draft / Published
Hide drafts from your live site.
Example View
+--------------------------------------+
| Title |
| [How to Build with Astro ] |
| |
| Description |
| [Learn Astro fundamentals... ] |
| |
| Publish Date Author |
| [2024-02-20] [John Doe] |
| |
| Tags |
| [astro] [tutorial] [+ Add tag] |
| |
| Featured Image |
| [Choose Image] |
| |
| Status: [ ] Draft [X] Published |
+--------------------------------------+
Content Editor
Below the frontmatter, you write your post content.
Markdown Editing
Write in Markdown for formatting:
# Main Heading
This is a paragraph with **bold** and *italic* text.
## Subheading
- List item 1
- List item 2
- List item 3
[Link to Astro](https://astro.build)
WYSIWYG Features
While you write in Markdown, the editor provides helpful features:
Toolbar Buttons:
- B - Bold text
- I - Italic text
- # - Headings
- • - Bullet list
- 1. - Numbered list
- " - Blockquote
<>- Code block- 🔗 - Insert link
- 🖼️ - Insert image
Keyboard Shortcuts:
Cmd/Ctrl + B: BoldCmd/Ctrl + I: ItalicCmd/Ctrl + K: Insert linkCmd/Ctrl + Shift + 7: Numbered listCmd/Ctrl + Shift + 8: Bullet list
Live Preview
Toggle between:
- Edit Mode: See the Markdown code
- Preview Mode: See how it will look
- Split Mode: Both side-by-side
Syntax Highlighting
Code blocks get automatic highlighting:
```javascript
function hello() {
console.log("Hello, World!");
}
```Renders as:
function hello() {
console.log("Hello, World!");
}Creating New Posts
New Blog Post
- Click "New Post" button (+ icon)
- Modal appears with options:
- Post title
- Initial tags
- Author name
- Date (defaults to today)
- Click "Create"
- New post opens in editor
- Start writing!
File Naming
Posts are automatically saved with a filename based on the title:
Title: "How to Build with Astro"
File: how-to-build-with-astro.mdx
Location: src/content/blog/how-to-build-with-astro.mdx
You can change the filename in Dev Mode if needed.
Working with Images
Upload Images
Two ways to add images:
Method 1: Image Picker
- Click "Insert Image" button
- Opens media manager
- Upload or select existing image
- Image added to post
Method 2: Drag and Drop
- Drag image file into editor
- Auto-uploads to
public/directory - Markdown code inserted automatically
Image Syntax
Image Optimization
Images are automatically optimized:
- Resized for web
- Converted to modern formats (WebP)
- Lazy loaded below the fold
- Responsive srcset generated
Auto-Save
Content Editor saves automatically:
- Auto-save: Every 2 seconds of inactivity
- Manual save: Cmd/Ctrl + S
- Save indicator: Green checkmark when saved
What Gets Saved
Both frontmatter and content are saved together to the MDX file:
---
title: "My Post"
date: 2024-02-20
---
Post content here...Save Status
Watch the header for save status:
- "Saving...": Currently writing to file
- "Saved ✓": All changes saved
- "Offline": No connection (changes queued)
Organizing Content
Categories
Group related posts:
Programming
- JavaScript
- Python
- Astro
Tutorials
- Beginner
- Advanced
Add categories in frontmatter editor.
Tags
Add searchable keywords:
Tags: astro, ssg, performance, tutorial, web-dev
Tags appear as chips you can click to add/remove.
Drafts
Mark posts as drafts to hide from live site:
Status: Draft
Drafts are:
- Visible in the editor
- Hidden from blog listing
- Excluded from RSS feed
- Not indexed by search engines
Markdown Cheat Sheet
Headings
# H1 - Main Title
## H2 - Section
### H3 - Subsection
#### H4 - Sub-subsectionText Formatting
**bold text**
*italic text*
***bold and italic***
~~strikethrough~~
`inline code`Links
[Link text](https://example.com)
[Link with title](https://example.com "Tooltip text")Lists
- Bullet point 1
- Bullet point 2
- Nested bullet
1. Numbered item 1
2. Numbered item 2
1. Nested numberImages

Blockquotes
> This is a quote
> It can span multiple linesCode Blocks
```javascript
const greeting = "Hello, World!";
console.log(greeting);
```Tables
| Column 1 | Column 2 | Column 3 |
|----------|----------|----------|
| Data 1 | Data 2 | Data 3 |
| Data 4 | Data 5 | Data 6 |Horizontal Rule
---MDX Features
Content Editor supports MDX, which means you can use JSX components:
Import Components
---
title: "My Post"
---
import { Alert } from '@components/Alert';
# My Post
Regular markdown content...
<Alert type="info">
This is an alert component!
</Alert>
More markdown...Built-in Components
WP2Astro provides common components:
<Callout type="warning">
Important information here
</Callout>
<CodeBlock language="javascript">
const x = 42;
</CodeBlock>
<YouTube id="dQw4w9WgXcQ" />Search and Filter
Search Content
Use the search bar to find posts:
- Search by title
- Search by content
- Search by tags
- Real-time filtering
Filter Options
Filter posts by:
- All Posts: Show everything
- Published: Only published posts
- Drafts: Only draft posts
- By Category: Filter by category
- By Tag: Filter by tag
Keyboard Shortcuts
Speed up your writing:
Editor Shortcuts
Cmd/Ctrl + B: Bold selectionCmd/Ctrl + I: Italic selectionCmd/Ctrl + K: Insert linkCmd/Ctrl + Shift + C: Insert code blockCmd/Ctrl + Shift + Q: Insert blockquote
Navigation
Cmd/Ctrl + P: Quick search postsCmd/Ctrl + N: New postCmd/Ctrl + S: Save (auto-save handles this)Esc: Close modals
Publishing Workflow
Draft → Review → Publish
Typical workflow:
-
Create Draft
- New post starts as draft
- Visible only in editor
- Not on live site
-
Write Content
- Add frontmatter
- Write post body
- Add images
- Format with markdown
-
Review
- Use Preview mode
- Check formatting
- Proofread
- Add tags and categories
-
Publish
- Toggle "Published" status
- Auto-saves and commits
- Triggers deployment
- Live in 2-3 minutes
Collaboration Features
Comments (Coming Soon)
Leave notes for team members:
{/* TODO: Add more examples here */}
{/* Review this section - Sarah */}Version History
View previous versions:
- See what changed
- Who made changes
- When changes were made
- Revert if needed
Access via Git integration in Dev Mode.
Tips for Writers
Writing in Markdown
If you're new to Markdown:
- Start simple - basic formatting is easy
- Use the toolbar buttons
- Check preview often
- Don't worry about syntax - it's forgiving
SEO Best Practices
For better search ranking:
- Write descriptive titles (50-60 characters)
- Add meta descriptions (150-160 characters)
- Use headings hierarchically (H1 → H2 → H3)
- Add alt text to all images
- Include relevant keywords naturally
- Link to related content
Content Organization
Keep content organized:
- Use consistent categories
- Tag appropriately (5-10 tags per post)
- Date posts accurately
- Set featured images for all posts
- Keep drafts organized
Troubleshooting
Content Not Saving
- Check save indicator (top right)
- Verify internet connection
- Check codespace is "Running"
- Try manual save (Cmd/Ctrl + S)
Images Not Showing
- Verify image uploaded successfully
- Check image path is correct
- Ensure image is in
public/directory - Try refreshing the editor
Formatting Issues
- Check Markdown syntax
- Use preview mode to verify
- Ensure no unclosed code blocks
- Check for special characters
Can't Find a Post
- Check search/filter settings
- Verify post isn't deleted
- Look in correct directory
- Switch to Dev Mode to see all files
Switching to Dev Mode
Need more control? Switch to Dev Mode:
- Save your changes (auto-saved anyway)
- Go back to dashboard
- Click "Dev Mode" instead of "Content"
- Access full file system and code editor
Changes sync between both modes.
Next Steps
- Learn about Dev Mode for advanced features
- Explore GitHub Codespaces for details
- Read about Deployment to publish your changes