blog-creator
Create SEO-optimized MDX blog posts with proper frontmatter
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Blog Post Creator Skill
This skill helps you create high-quality, SEO-optimized blog posts using the MDX content engine.
Directory Structure
-
Content Location:
src/content/blog/*.mdx -
Images:
/public/assets/images/(reference as/assets/images/...) -
Engine:
src/lib/mdx/blogs.ts -
Frontend:
src/app/(website-layout)/blog/
File Format
Each blog post must be a .mdx file with specific frontmatter:
---
title: "Your Engaging Title Here"
tags: ["tag1", "tag2", "seo-keyword"]
featuredImage: "/assets/images/your-image.png"
createdDate: "YYYY-MM-DD"
description: "A compelling meta description for SEO (150-160 chars recommended)"
---
# Your Title H1
Introduction paragraph...
## Section H2
Content...
Best Practices
-
Slug Generation: The filename becomes the slug (e.g.,
my-post.mdx->/blog/my-post). Use kebab-case. -
Images: Place images in
public/assets/imagesand reference them with absolute paths. - Tags: Used for "Related Articles" logic. Include 3-5 relevant tags.
-
Components: You can import and use React components inside MDX files (if configured in
mdx-components.tsx). -
SEO: -
title: Used for<title>andog:title. -description: Used for<meta name="description">andog:description. -featuredImage: Used forog:image. DO NOT USE single quotes in the frontmatter. Use double quotes instead.
Workflow
- Create a new file:
src/content/blog/your-slug.mdx. - Add the frontmatter.
- Write content using Markdown syntax.
- (Optional) Add images to
public/assets/images/.
Example
File: src/content/blog/getting-started.mdx
---
title: "Getting Started with Indie Kit"
tags: ["guide", "tutorial", "indie-kit"]
featuredImage: "/assets/images/og.png"
createdDate: "2024-03-20"
description: "A complete guide to setting up your new SaaS project with Indie Kit in under 10 minutes."
---
# Getting Started
Welcome to the future of SaaS development...
Refer to reference.md for more details.
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-28
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!