Update build-book.yaml
This commit is contained in:
4
.github/workflows/build-book.yaml
vendored
4
.github/workflows/build-book.yaml
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user