Update build-book.yaml

This commit is contained in:
何夕2077
2026-01-12 20:11:35 +08:00
committed by GitHub
parent 3db1fe3bfc
commit ad756ec76f

View File

@@ -256,7 +256,7 @@ jobs:
echo "--- 步骤 4: 更新主索引页面 (content/cn/_index.md) ---"
TARGET_INDEX="$TARGET_CONTENT_DIR/_index.md"
FRONTMATTER="---\nlinkTitle: AI Daily\ntitle: AI Daily-AI资讯日报\nbreadcrumbs: false\ncomments: true"
FRONTMATTER="---\nlinkTitle: AI Daily\ntitle: AI Daily-AI资讯日报\nbreadcrumbs: false\ncomments: true\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)