chore: 完善 new-post 脚本模板,更新 CLAUDE.md 新增文章流程

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-01 00:35:13 +08:00
parent 13a01e4354
commit 4637948b22
2 changed files with 8 additions and 1 deletions
+2 -1
View File
@@ -9,7 +9,7 @@ if (!name) {
}
const now = new Date()
const date = now.toISOString().slice(0, 10)
const date = now.toISOString().slice(0, 19)
const dir = resolve('content/posts', name)
const file = join(dir, 'index.md')
@@ -28,6 +28,7 @@ title: ${name}
published: ${date}
description:
image: /posts/${name}/img/cover.jpg
tags: []
draft: false
---