docs: add multilingual sitemap and crawler rules

This commit is contained in:
Zhou Weidong committed 2026-11-10 14:43:06 +08:00
1 parent 0b8791a277
commit ab9f50d66b
3 files changed
+15

No files matched your search

+4
View File
@@ -13,3 +13,7 @@ YMB 公开站点响应式首页原型,参考 YouTube 的内容发现信息架
- 桌面端:顶部搜索、侧边导航、推荐网格、Shorts 横滑区、频道订阅。 - 桌面端:顶部搜索、侧边导航、推荐网格、Shorts 横滑区、频道订阅。
- 移动端:顶部紧凑栏、双列内容、横滑 Shorts、底部导航。 - 移动端:顶部紧凑栏、双列内容、横滑 Shorts、底部导航。
- 原生 JS:搜索、题材筛选、播放提示、关注切换。 - 原生 JS:搜索、题材筛选、播放提示、关注切换。
- 多语言:印尼语 `?lang=id`、English `?lang=en`、简体中文 `?lang=zh`。
- SEO:动态 `lang/title/description`、canonical、hreflang、Open Graph、Twitter Card、JSON-LD、robots.txt、sitemap.xml。
部署前请将 `ymb.example.com` 替换为正式域名,并同步修改 `index.html`、`app.js`、`robots.txt` 与 `sitemap.xml`。
+4
View File
@@ -0,0 +1,4 @@
# Author: fruit.com.cn
User-agent: *
Allow: /
Sitemap: https://ymb.example.com/sitemap.xml
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Author: fruit.com.cn -->
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc>https://ymb.example.com/?lang=id</loc><changefreq>daily</changefreq><priority>1.0</priority></url>
<url><loc>https://ymb.example.com/?lang=en</loc><changefreq>daily</changefreq><priority>0.9</priority></url>
<url><loc>https://ymb.example.com/?lang=zh</loc><changefreq>daily</changefreq><priority>0.9</priority></url>
</urlset>