exclude sitemap, css and 404 from sitemap
Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
+3
-3
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user