exclude sitemap, css and 404 from sitemap
Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
layout: docwithnav
|
layout: docwithnav
|
||||||
title: 404 Error!
|
title: 404 Error!
|
||||||
permalink: /404.html
|
permalink: /404.html
|
||||||
|
no_canonical: true
|
||||||
---
|
---
|
||||||
|
|
||||||
<script src="/js/redirects.js"></script>
|
<script src="/js/redirects.js"></script>
|
||||||
|
|||||||
@@ -3,5 +3,7 @@ User-agent: *
|
|||||||
Disallow: /legacy/
|
Disallow: /legacy/
|
||||||
Disallow: /v1.0/
|
Disallow: /v1.0/
|
||||||
Disallow: /v1.1/
|
Disallow: /v1.1/
|
||||||
|
Disallow: /404/
|
||||||
|
Disallow: 404.html
|
||||||
|
|
||||||
SITEMAP: http://kubernetes.io/sitemap.xml
|
SITEMAP: http://kubernetes.io/sitemap.xml
|
||||||
|
|||||||
+3
-3
@@ -11,8 +11,8 @@
|
|||||||
<loc>http://kubernetes.io/</loc>
|
<loc>http://kubernetes.io/</loc>
|
||||||
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
|
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
|
||||||
</url>
|
</url>
|
||||||
{% for page in site.pages %}<url>
|
{% for page in site.pages %}{% if page.url != "/404.html" and page.url != "/sitemap.xml" and page.url != "/css/styles.css" %}<url>
|
||||||
<loc>http://kubernetes.io{{ page.url }}</loc>
|
<loc>http://kubernetes.io{{ page.url }}</loc>
|
||||||
<lastmod>{% if page.date %}{{ page.date | date_to_xmlschema }}{% else %}{{ site.time | date_to_xmlschema }}{% endif %}</lastmod>
|
<lastmod>{% if page.date %}{{ page.date | date_to_xmlschema }}{% else %}{{ site.time | date_to_xmlschema }}{% endif %}</lastmod>
|
||||||
</url>{% endfor %}
|
</url>{% endif %}{% endfor %}
|
||||||
</urlset>
|
</urlset>
|
||||||
|
|||||||
Reference in New Issue
Block a user