Update build-book.yaml

This commit is contained in:
何夕2077
2025-06-26 10:33:20 +08:00
committed by GitHub
parent 20b3d81e6d
commit fb2d5f36f8

View File

@@ -217,7 +217,7 @@ jobs:
echo "--- 步骤 4: 更新主索引页面 (content/cn/_index.md) ---"
TARGET_INDEX="$TARGET_CONTENT_DIR/_index.md"
FRONTMATTER="---\ntitle: TodayDaily\nbreadcrumbs: false\n"
FRONTMATTER="---\ntitle: Today's Daily\nbreadcrumbs: false\n"
# The 'next' link should point to the second latest note, which is now an archived page.
if [ -n "$SECOND_LATEST_NOTE" ] && [ "$LATEST_NOTE" != "$SECOND_LATEST_NOTE" ]; then # Ensure there IS a second latest note
FILENAME_SECOND_LATEST=$(basename "$SECOND_LATEST_NOTE" .md)
@@ -240,4 +240,4 @@ jobs:
commit_message: "chore(content): 自动同步每日文章及更新主页"
file_pattern: 'content/*' # Only commit changes in content directory
commit_user_name: "GitHub Actions Bot"
commit_user_email: "actions@github.com"
commit_user_email: "actions@github.com"