Update build-book.yaml

This commit is contained in:
何夕2077
2026-01-12 19:59:06 +08:00
committed by GitHub
parent a96bdfb3d1
commit 33e5d698b0

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\n"
FRONTMATTER="---\nlinkTitle: AI Daily\ntitle: AI Daily-AI资讯日报\nbreadcrumbs: false\ncomments: true"
# 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)