From b401e4d9d93088c0b2b63fbdba99616bd07bada4 Mon Sep 17 00:00:00 2001 From: QIU SHENGMING Date: Wed, 26 Nov 2025 20:11:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E5=A4=8DAI=E6=91=98=E8=A6=81?= =?UTF-8?q?=E4=B8=8D=E5=8A=A0=E8=BD=BD=E6=8A=BD=E6=90=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/posts/[...slug].astro | 125 +++++++++++++++++++++++++------- 1 file changed, 98 insertions(+), 27 deletions(-) diff --git a/src/pages/posts/[...slug].astro b/src/pages/posts/[...slug].astro index 2cada58..0497314 100644 --- a/src/pages/posts/[...slug].astro +++ b/src/pages/posts/[...slug].astro @@ -137,39 +137,110 @@ const jsonLd = { -
- - - -
+ } + + // 确保在 Astro 完全加载后执行 + if (document.readyState === 'loading') { + document.addEventListener('DOMContentLoaded', initHongmoAI); + } else { + initHongmoAI(); + } + +