From 012aed1aaf054347130809313d4aee929a79e0c7 Mon Sep 17 00:00:00 2001 From: erduotong <3135351980@qq.com> Date: Sun, 1 Jun 2025 16:54:31 +0800 Subject: [PATCH 1/6] =?UTF-8?q?feat(index,=20robots,=20sitemap):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20robots.txt=20=E5=92=8C=20sitemap.xml=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增 robots.txt 文件以控制搜索引擎爬虫的访问权限,并添加 sitemap.xml 文件以便于搜索引擎索引网站内容。 - robots.txt 允许所有用户代理访问,并禁止访问不必要的文件。 - sitemap.xml 提供网站的结构信息,帮助搜索引擎更好地抓取页面。 --- index.html | 31 ++++++++++++++++++------------- public/robots.txt | 11 +++++++++++ public/sitemap.xml | 9 +++++++++ 3 files changed, 38 insertions(+), 13 deletions(-) create mode 100644 public/robots.txt create mode 100644 public/sitemap.xml diff --git a/index.html b/index.html index 784cc04..c3ff45a 100644 --- a/index.html +++ b/index.html @@ -1,24 +1,29 @@ +
- - - - - -