diff --git a/.github/workflows/build-book-en.yaml b/.github/workflows/build-book-en.yaml index 66f7c2c..e0ca48b 100644 --- a/.github/workflows/build-book-en.yaml +++ b/.github/workflows/build-book-en.yaml @@ -304,7 +304,8 @@ jobs: if date_file_match: year, month, day = date_file_match.groups() # Capture year, month, and day print(f" - Applying 'MM-DD-Daily' title rule for date file: {base_fn}") - parsed_fm['title'] = f"{month}-{day}-Daily" # Use month and day + parsed_fm['title'] = f"{month}-{day}-Daily AI Daily" # Use month and day + parsed_fm['linkTitle'] = f"{month}-{day}-Daily" # NEW: Update 'next' field for _index.md if base_fn == "_index.md": diff --git a/.github/workflows/build-book-fr.yaml b/.github/workflows/build-book-fr.yaml index b289e50..c5065f2 100644 --- a/.github/workflows/build-book-fr.yaml +++ b/.github/workflows/build-book-fr.yaml @@ -276,7 +276,8 @@ jobs: if date_file_match: year, month, day = date_file_match.groups() # Capture year, month, and day print(f" - Applying 'MM-DD-Daily' title rule for date file: {base_fn}") - parsed_fm['title'] = f"{month}-{day}-Daily" # Use month and day + parsed_fm['title'] = f"{month}-{day}-Daily AI Daily" # Use month and day + parsed_fm['linkTitle'] = f"{month}-{day}-Daily" # NEW: Update 'next' field for _index.md if base_fn == "_index.md": diff --git a/.github/workflows/build-book-ja.yaml b/.github/workflows/build-book-ja.yaml index fdc423a..4edc337 100644 --- a/.github/workflows/build-book-ja.yaml +++ b/.github/workflows/build-book-ja.yaml @@ -300,7 +300,8 @@ jobs: if date_file_match: year, month, day = date_file_match.groups() # Capture year, month, and day print(f" - Applying 'MM-DD-Daily' title rule for date file: {base_fn}") - parsed_fm['title'] = f"{month}-{day}-Daily" # Use month and day + parsed_fm['title'] = f"{month}-{day}-Daily AI Daily" # Use month and day + parsed_fm['linkTitle'] = f"{month}-{day}-Daily" # NEW: Update 'next' field for _index.md if base_fn == "_index.md": diff --git a/.github/workflows/build-book.yaml b/.github/workflows/build-book.yaml index 9e55229..06f9689 100644 --- a/.github/workflows/build-book.yaml +++ b/.github/workflows/build-book.yaml @@ -178,8 +178,8 @@ jobs: ( - printf -- "---\ntitle: %s-%s-日刊\nweight: %d\nbreadcrumbs: false\ncomments: true\ndescription: \"%s\"\n---\n\n" \ - "$MONTH" "$DAY" "$weight" "$local_description" + printf -- "---\nlinkTitle: %s-%s-日刊\ntitle: %s-%s-日刊-AI日报\nweight: %d\nbreadcrumbs: false\ncomments: true\ndescription: \"%s\"\n---\n\n" \ + "$MONTH" "$DAY" "$MONTH" "$DAY" "$weight" "$local_description" cat "$source_file" ) > "$TARGET_FILE" echo "已归档到 $TARGET_FILE (或已更新)" @@ -239,7 +239,7 @@ jobs: echo "--- 步骤 4: 更新主索引页面 (content/cn/_index.md) ---" TARGET_INDEX="$TARGET_CONTENT_DIR/_index.md" - FRONTMATTER="---\ntitle: Today's Daily\nbreadcrumbs: false\n" + FRONTMATTER="---\nlinkTitle: Today's Daily\ntitle: Today's Daily-AI日报\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) @@ -262,4 +262,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" \ No newline at end of file diff --git a/assets/css/custom.css b/assets/css/custom.css index 60d258f..1110349 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -1,6 +1,32 @@ -/* - 给这个hugo模板代码生成css,要全局水平居中,不要设置最大宽度限制 -*/ +h1:first-of-type { + display: none; +} + +.content :where(img):not(:where([class~=not-prose],[class~=not-prose] *)) { + margin-left: auto; + margin-right: auto; + margin-top: 0.5rem; + margin-bottom: 0.5rem; + border-radius: .375rem; + max-width: 100%; + min-width: 100%; +} + +video { + margin-left: auto; + margin-right: auto; + margin-top: 1rem; + margin-bottom: 1rem; + border-radius: .375rem; + max-width: 100%; + min-width: 100%; +} + +br { + display: block; + content: ""; + margin-top: 20px; +} footer .hx-max-w-screen-xl{ max-width: 100%; diff --git a/hugo.yaml b/hugo.yaml index 9d853fb..eff74e1 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -1,5 +1,5 @@ # Hugo configuration file -title: 何夕2077的 AI 日报 / Hex2077's AI Daily AI信息一网打尽,每天3分钟,洞悉行业新动向 +title: 何夕2077的AI日报 AI Daily AI信息一网打尽,洞悉行业新动向 timezone: Asia/Shanghai enableRobotsTXT: true @@ -138,4 +138,4 @@ languages: ja: contentDir: content/ja languageName: 日本語 - weight: 4 + weight: 4 \ No newline at end of file diff --git a/layouts/partials/custom/head-end.html b/layouts/partials/custom/head-end.html index 3d8ca9d..7595aff 100644 --- a/layouts/partials/custom/head-end.html +++ b/layouts/partials/custom/head-end.html @@ -1,3 +1,7 @@ + + + + {{ if .IsTranslated }} {{ range .AllTranslations }}