chore: 完善 new-post 脚本模板,更新 CLAUDE.md 新增文章流程
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -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
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user