diff --git a/src/pages/posts/[...slug].astro b/src/pages/posts/[...slug].astro index 3f3d8b7..05885cf 100644 --- a/src/pages/posts/[...slug].astro +++ b/src/pages/posts/[...slug].astro @@ -138,86 +138,76 @@ const jsonLd = {
- - - -
- - - - + // 绑定 Swup 和 页面加载事件 + document.addEventListener('swup:page:view', triggerHongmo); + + if (document.readyState === 'loading') { + document.addEventListener('DOMContentLoaded', triggerHongmo); + } else { + triggerHongmo(); + } + +