Merge pull request #1448 from jessfraz/exclude-sitemap-css-and-404-from-sitemap

exclude sitemap, css and 404 from sitemap
This commit is contained in:
devin-donnelly
2016-10-12 15:45:55 -07:00
committed by GitHub
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -3,5 +3,7 @@ User-agent: *
Disallow: /legacy/
Disallow: /v1.0/
Disallow: /v1.1/
Disallow: /404/
Disallow: 404.html
SITEMAP: http://kubernetes.io/sitemap.xml
+3 -3
View File
@@ -11,8 +11,8 @@
<loc>http://kubernetes.io/</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
</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>
<lastmod>{% if page.date %}{{ page.date | date_to_xmlschema }}{% else %}{{ site.time | date_to_xmlschema }}{% endif %}</lastmod>
</url>{% endfor %}
</urlset>
</url>{% endif %}{% endfor %}
</urlset>