优化移动端阅读体验、优化瞬间样式、修复导航target属性渲染错误

This commit is contained in:
nxxy335top
2026-05-22 14:56:55 +08:00
parent f48db60690
commit 9d0bfcfb4f
24 changed files with 246 additions and 276 deletions
+7
View File
@@ -76,6 +76,13 @@ const { pageTitle, contentClass, wide, home } = Astro.props;
<slot name="head" />
</head>
<body class="wi-body">
<script is:inline>
window.addEventListener("unhandledrejection", function (e) {
if (e.reason && e.reason.message && e.reason.message.indexOf("Could not establish connection") !== -1) {
e.preventDefault();
}
});
</script>
<script is:inline>
(function(){
try{