| name | new-article |
| description | Scaffold a new blog article with correct frontmatter and file placement |
New Article
Create a new article in the Astro content collection.
Arguments
- title (required): The article title
- slug (optional): URL slug. If omitted, derive from title (lowercase, hyphens, no special chars)
- tags (optional): Comma-separated tags
- draft (optional): Set to true to mark as draft. Defaults to false.
- link (optional): External URL for link-type articles
- type (optional): "guide" (shows ToC) or "standard" (default)
File Placement
Articles use the naming pattern: YYYY-MM-DD-<slug>.md
- Recent articles go directly in
src/content/articles/
- Older articles are organized by year:
src/content/articles/YYYY/
- New articles should go directly in
src/content/articles/
Frontmatter Schema
---
title: 'Article Title'
date: 'YYYY-MM-DDTHH:MM:SS-07:00'
slug: article-slug
tags:
- tag1
- tag2
excerpt: 'Optional short description'
draft: