Format Markdown articles with Frontmatter
mainTo ensure successful uploading, every Markdown article must include a frontmatter block at the top. This block provides metadata required for the WeChat publication process.
| Field | Required | Description |
|---|---|---|
title | ✅ | Article title |
cover | ❌ | Cover image (local path or URL). If omitted, the first image in the body is used. |
author | ❌ | Author name |
source_url | ❌ | Original article link |
type | ❌ | Set to image for image-only messages (Xiao Lü Shu) |
image_list | ❌ | List of image paths (for type: image, max 20) |
need_open_comment | ❌ | Whether to enable comments |
only_fans_can_comment | ❌ | Whether only fans can comment |
Example Article Structure:
---
title: My Article Title
cover: /Users/xxx/image.jpg
author: John Doe
source_url: http://example.com
---
# Content starts here...---
title: 在本地跑一个大语言模型(2) - 给模型提供外部知识库
cover: /Users/xxx/image.jpg
author: xxx
source_url: http://
---