mirror of https://github.com/istio/istio.io.git
Fix sitemap errors.
This commit is contained in:
parent
9c4b177418
commit
00344a3268
|
|
@ -6,4 +6,4 @@ User-agent: *
|
||||||
{% for node in site.pages %}{% if node.noindex %}{% assign isset = true %}Disallow: {{ node.url }}
|
{% for node in site.pages %}{% if node.noindex %}{% assign isset = true %}Disallow: {{ node.url }}
|
||||||
{% endif %}{% endfor %}{% if isset != true %}Disallow:
|
{% endif %}{% endfor %}{% if isset != true %}Disallow:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
Sitemap: {{ site.baseurl }}/sitemap.xml
|
Sitemap: https://istio.io/sitemap.xml
|
||||||
|
|
|
||||||
|
|
@ -2,18 +2,21 @@
|
||||||
title : "Sitemap"
|
title : "Sitemap"
|
||||||
sitemap_exclude: y
|
sitemap_exclude: y
|
||||||
---
|
---
|
||||||
|
|
||||||
|
{% assign istio = "https://istio.io" %}
|
||||||
|
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{site.baseurl}}{{ post.url | remove: 'index.html' }}</loc>
|
<loc>{{istio}}{{ post.url | remove: 'index.html' }}</loc>
|
||||||
</url>
|
</url>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% for page in site.pages %}
|
{% for page in site.pages %}
|
||||||
{% if page.sitemap_exclude != 'y' %}
|
{% if page.sitemap_exclude != 'y' %}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{site.baseurl}}{{ page.url | remove: 'index.html' }}</loc>
|
<loc>{{istio}}{{ page.url | remove: 'index.html' }}</loc>
|
||||||
</url>
|
</url>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
@ -21,7 +24,7 @@ sitemap_exclude: y
|
||||||
{% for page in site.docs %}
|
{% for page in site.docs %}
|
||||||
{% if page.sitemap_exclude != 'y' %}
|
{% if page.sitemap_exclude != 'y' %}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{site.baseurl}}{{ page.url | remove: 'index.html' }}</loc>
|
<loc>{{istio}}{{ page.url | remove: 'index.html' }}</loc>
|
||||||
</url>
|
</url>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue