| name | new-post |
| description | Create a new blog post. Pass the title and content as arguments. |
Create a new blog post based on $ARGUMENTS.
Follow these steps:
- Determine the post title and content from the arguments provided.
- Generate a URL-friendly slug from the title (lowercase, hyphens, no special characters).
- Create the file at
src/content/blog/YYYY-MM-DD-<slug>.md using today's date.
- Use this front matter template:
---
title: <Title>
description: <Generate a short 1-sentence description>
pubDate: YYYY-MM-DD 00:00:00-05:00
---
- Add the post content below the front matter. Keep the user's wording intact; only fix obvious spelling mistakes.
- Commit with message: "Add blog post: "
- Push to the current branch.