From 1ca08a17e1bd4b2d0a5aaa923596cdfe56b26b50 Mon Sep 17 00:00:00 2001 From: yezian Date: Thu, 9 May 2024 22:03:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96seo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/[user_id]/page.jsx | 1 - app/layout.jsx | 15 +++++++++++++-- app/robots.js | 22 ++++++++++++++++++++++ app/sitemap.js | 10 ++++++++++ 4 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 app/robots.js create mode 100644 app/sitemap.js diff --git a/app/[user_id]/page.jsx b/app/[user_id]/page.jsx index 235d0d6..88dc867 100644 --- a/app/[user_id]/page.jsx +++ b/app/[user_id]/page.jsx @@ -40,7 +40,6 @@ export default function StreamerDetail({ params }) { } ); const detailData = await detailResponse.json(); - console.log(detailData); if (detailData.ret === -1) { Toast.show({ content: detailData.msg, diff --git a/app/layout.jsx b/app/layout.jsx index 0f9700f..62b5bb7 100644 --- a/app/layout.jsx +++ b/app/layout.jsx @@ -1,9 +1,20 @@ import "./globals.css"; export const metadata = { - title: "铁粉空间APP", + title: "铁粉空间", description: "与Ta永不失联", - keywords: ["社交", "网红", "粉丝", "创作者", "变现", "平台", "铁粉", "空间"], + keywords: [ + "铁粉空间", + "铁粉空间APP", + "社交", + "网红", + "粉丝", + "创作者", + "变现", + "平台", + "铁粉", + "空间", + ], }; export const viewport = { diff --git a/app/robots.js b/app/robots.js new file mode 100644 index 0000000..e661d95 --- /dev/null +++ b/app/robots.js @@ -0,0 +1,22 @@ +export default function robots() { + return { + rules: { + userAgent: "*", + allow: "/", + disallow: [ + "/doc/", + "/help/", + "/bill/", + "/generatelink/", + "/invite/", + "/pay/", + "/purchased/", + "/tool/", + "/verification/", + "/vip/", + "/withdrawal/", + ], + }, + sitemap: "https://tiefen.fun/sitemap.xml", + }; +} diff --git a/app/sitemap.js b/app/sitemap.js new file mode 100644 index 0000000..196c980 --- /dev/null +++ b/app/sitemap.js @@ -0,0 +1,10 @@ +export default function sitemap() { + return [ + { + url: "https://tiefen.fun", + lastModified: new Date(), + changeFrequency: "weekly", + priority: 1, + }, + ]; +}