Create a new promoted/featured card in the src/content/promoted/ directory.
Steps
- Take the title from the user's argument. If not provided, ask for one.
- Generate a kebab-case filename from the title.
- Read existing promoted items in
src/content/promoted/to determine the nextordernumber (highest existing order + 1, or 1 if none exist). - Ask the user for:
- Description — keep under 120 characters
- Link URL — destination when the card is clicked
- Link text — CTA button text (e.g., "Learn more", "View project")
- Image URL — card image
- Create
src/content/promoted/<slug>.md:
---
title: "<title>"
description: "<description>"
image: "<image URL>"
link: "<link URL>"
linkText: "<link text>"
order: <next order number>
publishedAt: <today's date YYYY-MM-DD>
---
- Tell the user:
- The file was created at
src/content/promoted/<slug>.md - The
orderfield controls display order on the homepage (lower = first) - Keep title under 60 characters and description under 120 characters
- All fields are required for promoted cards
- The file was created at