@@ -395,36 +395,17 @@ export default function RootLayout({
395395 lang = "zh-CN"
396396 className = { clsx ( GeistSans . variable , GeistMono . variable ) }
397397 suppressHydrationWarning
398- prefix = "og: https://ogp.me/ns# fb: https://www.facebook.com/2008/fbml" // 补充FB命名空间
398+ prefix = "og: https://ogp.me/ns# fb: https://www.facebook.com/2008/fbml"
399399 >
400- < head > { /* 核心编码(不可省略) */ }
401- < meta charSet = "UTF-8" />
402- { /* 版权信息(精简) */ }
403- < meta name = "copyright" content = { `© ${ CURRENT_YEAR } ${ BRAND_NAME } .` } />
404- { /* 图标(强化跨浏览器兼容) */ }
405- < link rel = "icon" href = { FAVICON_ICO } type = "image/x-icon" />
406- < link rel = "shortcut icon" href = { FAVICON_ICO } type = "image/x-icon" />
407- { /* 新增:Edge/IE兼容 */ }
408- < meta name = "msapplication-config" content = "/browserconfig.xml" /> { /* 若有则补充,无则注释 */ }
409- { /* 移动端极致优化 */ }
410- < meta name = "apple-mobile-web-app-capable" content = "yes" />
411- < meta name = "apple-mobile-web-app-status-bar-style" content = "black-translucent" />
412- < meta name = "apple-mobile-web-app-title" content = "EndlessPixel" />
413- < meta name = "mobile-web-app-capable" content = "yes" />
414- < meta name = "viewport" content = "width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover" /> { /* 冗余但保险 */ }
415- { /* 兼容性优化 */ }
416- < meta httpEquiv = "X-UA-Compatible" content = "IE=edge,chrome=1" />
417- < meta name = "format-detection" content = "telephone=no,email=no,address=no" />
418- { /* 性能优化(预加载核心资源) */ }
419- < link rel = "preconnect" href = { DOMAIN } crossOrigin = "anonymous" />
420- < link rel = "preconnect" href = "https://github.com" crossOrigin = "anonymous" />
421- < link rel = "preconnect" href = "https://discord.gg" crossOrigin = "anonymous" />
422- < link rel = "dns-prefetch" href = { DOMAIN } />
423- < link rel = "dns-prefetch" href = "https://github.com" />
424- < link rel = "dns-prefetch" href = "https://discord.gg" />
425- { /* 新增:预加载OG图(提升社交预览速度) */ }
400+ < head > < meta charSet = "UTF-8" /> < meta name = "copyright" content = { `© ${ CURRENT_YEAR } ${ BRAND_NAME } .` } />
401+ < link rel = "icon" href = { FAVICON_ICO } type = "image/x-icon" /> < link rel = "shortcut icon" href = { FAVICON_ICO } type = "image/x-icon" />
402+ < meta name = "apple-mobile-web-app-capable" content = "yes" /> < meta name = "apple-mobile-web-app-status-bar-style" content = "black-translucent" />
403+ < meta name = "apple-mobile-web-app-title" content = "EndlessPixel" /> < meta name = "mobile-web-app-capable" content = "yes" />
404+ < meta name = "viewport" content = "width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover" />
405+ < meta httpEquiv = "X-UA-Compatible" content = "IE=edge,chrome=1" /> < meta name = "format-detection" content = "telephone=no,email=no,address=no" />
406+ < link rel = "preconnect" href = { DOMAIN } crossOrigin = "anonymous" /> < link rel = "preconnect" href = "https://github.com" crossOrigin = "anonymous" /> < link rel = "preconnect" href = "https://discord.gg" crossOrigin = "anonymous" />
407+ < link rel = "dns-prefetch" href = { DOMAIN } /> < link rel = "dns-prefetch" href = "https://github.com" /> < link rel = "dns-prefetch" href = "https://discord.gg" />
426408 < link rel = "preload" href = { OG_IMAGE } as = "image" type = "image/png" crossOrigin = "anonymous" />
427- { /* 结构化数据(压缩输出) */ }
428409 { jsonLd . map ( ( ld , index ) => (
429410 < script
430411 key = { index }
0 commit comments