Skip to content

Commit 5d9f27c

Browse files
committed
try again for alt-lang sitemap
1 parent a99c052 commit 5d9f27c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

sitemap.xml

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@ search: exclude
44
---
55

66
<?xml version="1.0" encoding="UTF-8"?>
7+
78
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
8-
xmlns:xhtml="http://www.w3.org/1999/xhtml">
9+
xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0"
10+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11+
xmlns:xhtml="http://www.w3.org/1999/xhtml">
912

1013
{% for page in site.html_pages %}
1114
<url>
1215
<loc>{{page.url | absolute_url}}</loc>
1316

1417
{% if page.alternate.zh %}
15-
<link rel="alternate" hreflang="zh" href="{{page.alternate.zh}}" />
18+
<xhtml:link rel="alternate" hreflang="zh" href="{{page.alternate.zh}}" />
1619
{% endif %}
1720
{% if page.alternate.ja %}
18-
<link rel="alternate" hreflang="ja" href="{{page.alternate.ja}}" />
21+
<xhtml:link rel="alternate" hreflang="ja" href="{{page.alternate.ja}}" />
1922
{% endif %}
2023

2124
<lastmod>{{site.time | date_to_xmlschema }}</lastmod>

0 commit comments

Comments
 (0)