Skip to content

Commit 4a32f3a

Browse files
committed
修复图片部署脚本
1 parent cf0881f commit 4a32f3a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

utils/create_image_renderer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ def update_front_matter(file_path: str):
3434
text = path.read_text(encoding="utf-8")
3535

3636
# 使用正则匹配 front matter
37-
pattern = re.compile(r"^---\s*\ntitle:\s*首页\s*\ntype:\s*docs\s*\n---", re.MULTILINE)
37+
# pattern = re.compile(r"^---\s*\ntitle:\s*首页\s*\ntype:\s*docs\s*\n---", re.MULTILINE)
38+
pattern = re.compile(r"^---\s*\ntitle:\s*首页\s*\ntype:\s*docs\s*\nchapter:\s*-2\s*\n---", re.MULTILINE)
3839
replacement = """---
3940
title: 首页
4041
type: docs
42+
chapter: -2
4143
cascade:
4244
build:
4345
publishResources: false

0 commit comments

Comments
 (0)