跳到正文
返回

「高老师的分享局」博客发布流程与规范

short-video-blog

高老师的分享局 — 短视频置顶评论的长文落地页,基于 AstroPaper

本地开发

npm install
npm run dev

开发服务器可用后台模式管理:

astro dev --background
astro dev stop
astro dev status
astro dev logs

新增文章

src/content/posts/ 新建 {slug}.md

Slug 命名

Frontmatter

---
author: AI Daily
pubDatetime: 2026-08-08
title: '文章标题'
description: '列表页摘要,控制在 2 行以内'
tags: ['Tag1', 'Tag2']
videoSlug: my-short-name      # 可选:对应短视频内部标识
sourceUrl: 'https://...'      # 可选:阅读原文或来源链接
videoUrl: 'https://...'       # 可选:短视频播放链接
---

字段说明:

字段必填说明
author固定为 AI Daily
pubDatetime发布日期,格式 YYYY-MM-DD
title文章标题
description列表页摘要
tags标签数组,建议 1-3 个,首字母大写
videoSlug对应短视频项目内部标识
sourceUrl阅读原文或外部来源链接
videoUrl短视频播放地址

文章地址:/p/{slug}/(例如 minimax-h3-guide.md/p/minimax-h3-guide/

发布 Checklist(Agent 用)

  1. 按规范创建 src/content/posts/{slug}.md

  2. 本地构建验证:npm run build

  3. 检查 Git 状态:git status --short

  4. 确认提交账号后提交并推送(账号要求见下方「提交账号」):

    git add src/content/posts/{slug}.md
    git commit -m "add post: 文章标题"
    git push origin HEAD
  5. 等待 Vercel 自动部署完成

  6. 访问 https://ai-daily.tech/p/{slug}/ 验证线上页面

提交账号(重要)

推送前必须确认 Git committer 为 Cursor Agent <cursoragent@cursor.com>

git config user.name   # 应输出 Cursor Agent
git config user.email  # 应输出 cursoragent@cursor.com

提交并推送:

git add src/content/posts/{slug}.md
git commit -m "add post: 文章标题"
git push origin HEAD

注意:用其他账号(如个人账号 addunt)推送,Vercel 部署会报错,无法触发线上更新;只有用 Cursor Agent 账号推送才能成功部署。提交账号需与历史提交保持一致。

部署

已连接 Vercel 项目 short-video-blog,推送 GitHub 后自动部署,或手动:

npm run build
vercel deploy --prod

定制保留


上一篇
字卡影快闪短视频(CaptionReel)制作与排版布局规范
下一篇
贴文卡(PostCard)短视频制作规范