129 lines
4.0 KiB
TypeScript
129 lines
4.0 KiB
TypeScript
import type { Metadata } from "next";
|
||
import { Geist, Geist_Mono } from "next/font/google";
|
||
import "../globals.css";
|
||
|
||
const geistSans = Geist({
|
||
variable: "--font-geist-sans",
|
||
subsets: ["latin"],
|
||
});
|
||
|
||
const geistMono = Geist_Mono({
|
||
variable: "--font-geist-mono",
|
||
subsets: ["latin"],
|
||
});
|
||
|
||
export const metadata: Metadata = {
|
||
title: "万物皆可比对 - AI智能比较工具",
|
||
description: "使用AI智能分析工具比较任何两个事物。获得产品、服务、概念等详细比较。免费在线比较生成器,提供智能洞察。",
|
||
keywords: "比较工具, AI比较, 产品比较, 服务比较, 对比工具, 万物比较, 分析工具, 决策辅助",
|
||
authors: [{ name: "万物皆可比对" }],
|
||
creator: "万物皆可比对",
|
||
publisher: "万物皆可比对",
|
||
formatDetection: {
|
||
email: false,
|
||
address: false,
|
||
telephone: false,
|
||
},
|
||
metadataBase: new URL(process.env.NEXT_PUBLIC_SITE_URL || 'https://anything-vs-anything.com'),
|
||
alternates: {
|
||
canonical: '/zh-CN',
|
||
languages: {
|
||
'en': '/',
|
||
'zh-CN': '/zh-CN',
|
||
},
|
||
},
|
||
openGraph: {
|
||
title: "万物皆可比对 - AI智能比较工具",
|
||
description: "使用AI智能分析工具比较任何两个事物。获得产品、服务、概念等详细比较。",
|
||
url: '/zh-CN',
|
||
siteName: "万物皆可比对",
|
||
locale: 'zh_CN',
|
||
type: 'website',
|
||
images: [
|
||
{
|
||
url: '/og-image.png',
|
||
width: 1200,
|
||
height: 630,
|
||
alt: '万物皆可比对 - AI比较工具',
|
||
},
|
||
],
|
||
},
|
||
twitter: {
|
||
card: 'summary_large_image',
|
||
title: "万物皆可比对 - AI智能比较工具",
|
||
description: "使用AI智能分析工具比较任何两个事物。获得产品、服务、概念等详细比较。",
|
||
images: ['/og-image.png'],
|
||
},
|
||
robots: {
|
||
index: true,
|
||
follow: true,
|
||
googleBot: {
|
||
index: true,
|
||
follow: true,
|
||
'max-video-preview': -1,
|
||
'max-image-preview': 'large',
|
||
'max-snippet': -1,
|
||
},
|
||
},
|
||
verification: {
|
||
google: process.env.GOOGLE_SITE_VERIFICATION,
|
||
},
|
||
};
|
||
|
||
export default function RootLayout({
|
||
children,
|
||
}: Readonly<{
|
||
children: React.ReactNode;
|
||
}>) {
|
||
return (
|
||
<html lang="zh-CN">
|
||
<head>
|
||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
<link rel="icon" href="/favicon.ico" />
|
||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||
<link rel="manifest" href="/manifest.json" />
|
||
<meta name="theme-color" content="#3B82F6" />
|
||
<script
|
||
type="application/ld+json"
|
||
dangerouslySetInnerHTML={{
|
||
__html: JSON.stringify({
|
||
"@context": "https://schema.org",
|
||
"@type": "WebApplication",
|
||
"name": "万物皆可比对",
|
||
"description": "AI智能比较工具,帮助您比较任何两个事物,提供详细分析和洞察",
|
||
"url": process.env.NEXT_PUBLIC_SITE_URL + "/zh-CN" || "https://anything-vs-anything.com/zh-CN",
|
||
"applicationCategory": "Utility",
|
||
"operatingSystem": "Web",
|
||
"inLanguage": "zh-CN",
|
||
"offers": {
|
||
"@type": "Offer",
|
||
"price": "0",
|
||
"priceCurrency": "CNY"
|
||
},
|
||
"author": {
|
||
"@type": "Organization",
|
||
"name": "万物皆可比对"
|
||
}
|
||
})
|
||
}}
|
||
/>
|
||
<script defer src="https://umami.frytea.com/script.js" data-website-id="9d16d648-a83d-4616-94d6-ec3bb1f8e0b7"></script>
|
||
<script
|
||
src="https://rybbit.frytea.com/api/script.js"
|
||
data-site-id="13"
|
||
defer
|
||
></script>
|
||
<script
|
||
async
|
||
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7296634171837358"
|
||
crossOrigin="anonymous"
|
||
></script>
|
||
</head>
|
||
<body
|
||
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
||
>
|
||
{children}
|
||
</body>
|
||
</html>
|
||
);
|
||
} |