From d73e09f58d3780f4a1dae49bfc0777fe04d8099b Mon Sep 17 00:00:00 2001 From: guofei Date: Fri, 25 Oct 2024 14:20:01 +0800 Subject: [PATCH] feat: add seo tdk --- public/robots.txt | 2 ++ public/sitemap.xml | 30 ++++++++++++++++++++++++++++++ src/app/[[...lang]]/page.tsx | 2 ++ src/app/layout.tsx | 16 +++++++--------- 4 files changed, 41 insertions(+), 9 deletions(-) create mode 100644 public/robots.txt create mode 100644 public/sitemap.xml diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..e9b8c1d --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Allow: / \ No newline at end of file diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000..195421a --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,30 @@ + + + + + https://www.soyootech.com/en + 0.3 + 2024-10-25 + weekly + + + + https://www.soyootech.com/price + 0.3 + 2024-10-25 + weekly + + + + https://www.soyootech.com/ + 0.3 + 2024-10-25 + weekly + + + \ No newline at end of file diff --git a/src/app/[[...lang]]/page.tsx b/src/app/[[...lang]]/page.tsx index a9f0484..bf57c6b 100644 --- a/src/app/[[...lang]]/page.tsx +++ b/src/app/[[...lang]]/page.tsx @@ -5,6 +5,8 @@ import Footer from "@/app/components/footer"; import Examples from "../components/Examples"; + + export default async function Home(props: { params: { lang: string[] } }) { const lang = props.params.lang || ["zh"]; diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 7e0ffce..189ce25 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -2,20 +2,18 @@ import type { Metadata } from "next"; import "./globals.css"; import { ReactElement, ReactNode } from "react"; - export const metadata: Metadata = { - title: "北京索游科技", - description: "Generated by create next app", + title: "试玩广告先锋 | 北京索游科技", + keywords: "试玩广告、互动广告、游戏推广、游戏曝光、玩家参与、unity、facebook、google、tapjoy、vungle、ironsource", + description: "我们致力于试玩广告领域,以创新理念和专业服务为游戏行业注入新活力,提供独特的试玩广告方案,有效提升游戏曝光度,吸引众多玩家参与。", + creator: "Playable Ads 定制服务团队", }; -function RootLayout({ children }:{ children: ReactNode } ): ReactElement { +function RootLayout({ children }: { children: ReactNode }): ReactElement { return ( - - {children} - + {children} ); } -export default RootLayout +export default RootLayout;