Content Publisher
Publish markdown articles to Medium, Dev.to, and Hashnode. Handles SEO, formatting, and canonical URLs for cross-posting.
Supported Platforms
| Platform | Method | Auth |
|---|
| Medium | Browser automation | Google login |
| Dev.to |
API | API key in env
DEVTO_API_KEY |
| Hashnode | API | API key in env
HASHNODE_TOKEN |
Workflow
1. Prepare content
Ensure article has:
- - Title (H1)
- Subtitle/description
- Tags (3-5 relevant tags)
- Content body (markdown)
- Optional: cover image URL
2. SEO optimization checklist
Before publishing, verify:
- - [ ] Title contains target keyword (under 60 chars)
- [ ] Meta description (under 155 chars)
- [ ] H2/H3 structure with keywords
- [ ] Internal/external links
- [ ] Alt text on images
- [ ] Call-to-action at end
3. Publish to Medium (browser)
CODEBLOCK0
4. Publish to Dev.to (API)
CODEBLOCK1
5. Publish to Hashnode (GraphQL)
CODEBLOCK2
Cross-posting strategy
- 1. First: Publish on Medium (or your primary platform)
- Wait 24-48h: Let search engines index the original
- Cross-post: Use
canonical_url pointing to the original - Why: Avoids duplicate content penalties in SEO
Publication submission (Medium)
To get more reach, submit to Publications:
- 1. Find publication's "Write for us" page
- Follow their submission guidelines
- Submit via Medium's story settings → "Add to publication"
High-traffic AI Publications
- - Towards AI (AI/ML focused)
- Better Programming (dev tools)
- The Startup (business/tech)
- Geek Culture (tech general)
- Level Up Coding (programming)
Batch publishing
For multiple articles, process sequentially with delays:
- - Medium: max 2 articles per 24 hours
- Dev.to: no strict limit, but space them 1+ hours apart
- Hashnode: no strict limit
内容发布器
将Markdown文章发布到Medium、Dev.to和Hashnode。处理跨平台发布的SEO、格式化和规范URL。
支持的平台
| 平台 | 方法 | 认证方式 |
|---|
| Medium | 浏览器自动化 | Google登录 |
| Dev.to |
API | 环境变量DEVTO
APIKEY中的API密钥 |
| Hashnode | API | 环境变量HASHNODE_TOKEN中的API密钥 |
工作流程
1. 准备内容
确保文章包含:
- - 标题(H1)
- 副标题/描述
- 标签(3-5个相关标签)
- 内容正文(Markdown格式)
- 可选:封面图片URL
2. SEO优化清单
发布前,请确认:
- - [ ] 标题包含目标关键词(不超过60个字符)
- [ ] 元描述(不超过155个字符)
- [ ] 包含关键词的H2/H3结构
- [ ] 内部/外部链接
- [ ] 图片的Alt文本
- [ ] 结尾处的行动号召
3. 发布到Medium(浏览器)
- 1. 导航至 https://medium.com/new-story
- 粘贴标题和内容
- 点击发布→ 设置标签 → 确认
4. 发布到Dev.to(API)
bash
curl -X POST https://dev.to/api/articles \
-H api-key: $DEVTO
APIKEY \
-H Content-Type: application/json \
-d {
article: {
title: 标题,
body_markdown: 内容,
published: true,
tags: [ai, productivity],
canonical
url: MEDIUMURL
}
}
5. 发布到Hashnode(GraphQL)
bash
curl -X POST https://gql.hashnode.com \
-H Authorization: $HASHNODE_TOKEN \
-H Content-Type: application/json \
-d {
query: mutation { publishPost(input: { title: \标题\, contentMarkdown: \内容\, publicationId: \PUB_ID\, tags: [{slug: \ai\}] }) { post { url } } }
}
跨平台发布策略
- 1. 首先:在Medium(或你的主平台)上发布
- 等待24-48小时:让搜索引擎索引原始内容
- 跨平台发布:使用指向原始内容的canonical_url
- 原因:避免SEO中的重复内容惩罚
投稿发布(Medium)
为获得更多曝光,可向以下出版物投稿:
- 1. 找到出版物的为我们撰稿页面
- 遵循其投稿指南
- 通过Medium的故事设置→添加到出版物提交
高流量AI出版物
- - Towards AI(AI/机器学习方向)
- Better Programming(开发工具)
- The Startup(商业/科技)
- Geek Culture(科技综合)
- Level Up Coding(编程)
批量发布
对于多篇文章,按顺序处理并设置延迟:
- - Medium:每24小时最多2篇文章
- Dev.to:无严格限制,但建议间隔1小时以上
- Hashnode:无严格限制