From a7d5577af320dc9a30a7fa9dfc472ffa03931ef6 Mon Sep 17 00:00:00 2001 From: AI Infra <964572642@qq.com> Date: Fri, 9 Oct 2026 06:27:53 +0000 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20add=20Chinese=20WeChat=20follow=20e?= =?UTF-8?q?ntry=20for=20=E6=B3=AF=E6=B3=B7ML?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ArticlePage.astro | 2 + src/components/ContactPage.astro | 10 ++++ src/components/HomePage.astro | 8 +++ src/components/Icon.astro | 3 + src/components/SocialLinks.astro | 24 ++++++++ src/components/WeChatFollow.astro | 92 +++++++++++++++++++++++++++++++ src/config/site.ts | 3 + 7 files changed, 142 insertions(+) create mode 100644 src/components/WeChatFollow.astro diff --git a/src/components/ArticlePage.astro b/src/components/ArticlePage.astro index eb4e6ef6..eceeff7d 100644 --- a/src/components/ArticlePage.astro +++ b/src/components/ArticlePage.astro @@ -3,6 +3,7 @@ import BaseLayout from "../layouts/BaseLayout.astro"; import PostCard from "./PostCard.astro"; import Icon from "./Icon.astro"; import Diagrams from "./Diagrams.astro"; +import WeChatFollow from "./WeChatFollow.astro"; import { ui, dateLabel, type Locale } from "../i18n"; import { getPosts, renderPost, type Post } from "../lib/content"; import { localePath, normalizeBase, postPath } from "../lib/paths.mjs"; @@ -163,6 +164,7 @@ const editUrl = `https://github.com/MoMeak9/MyBlogDoc/edit/main/src/${post.id.sp )} + {locale === "zh" && } {toc.length > 0 && ( )} {locale === "zh" && } + {post.indexable && !post.empty && } {toc.length > 0 && (