Skip to content

Commit e9e3c4c

Browse files
committed
fix(seo): sitemap添加百度移动协议标签 htmladapt,匹配代码匹配站点类型
1 parent 19d80f0 commit e9e3c4c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

public/sitemap.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
33
xmlns:xhtml="http://www.w3.org/1999/xhtml"
4-
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
4+
xmlns:mobile="http://www.baidu.com/schemas/sitemap-mobile/1/0">
55

66
<!-- 首页 -->
77
<url>
88
<loc>https://tangnotes.site/</loc>
99
<lastmod>2026-07-31</lastmod>
1010
<changefreq>weekly</changefreq>
1111
<priority>1.0</priority>
12+
<mobile:mobile type="htmladapt"/>
1213
<xhtml:link rel="alternate" hreflang="zh-CN" href="https://tangnotes.site/"/>
1314
<xhtml:link rel="alternate" hreflang="en" href="https://tangnotes.site/?lang=en"/>
1415
<xhtml:link rel="alternate" hreflang="ja" href="https://tangnotes.site/?lang=ja"/>
@@ -21,6 +22,7 @@
2122
<lastmod>2026-07-31</lastmod>
2223
<changefreq>weekly</changefreq>
2324
<priority>0.8</priority>
25+
<mobile:mobile type="htmladapt"/>
2426
</url>
2527

2628
<!-- 教程 -->
@@ -29,6 +31,7 @@
2931
<lastmod>2026-07-31</lastmod>
3032
<changefreq>monthly</changefreq>
3133
<priority>0.7</priority>
34+
<mobile:mobile type="htmladapt"/>
3235
</url>
3336

3437
</urlset>

0 commit comments

Comments
 (0)