lib/sitemap.xml in jekyll-sitemap-1.1.1 vs lib/sitemap.xml in jekyll-sitemap-1.2.0
- old
+ new
@@ -24,13 +24,13 @@
<lastmod>{{ page.last_modified_at | date_to_xmlschema }}</lastmod>
{% endif %}
</url>
{% endfor %}
- {% assign static_files = page.static_files | where_exp:'page','page.name != "404.html"' %}
+ {% assign static_files = page.static_files | where_exp:'page','page.sitemap != false' | where_exp:'page','page.name != "404.html"' %}
{% for file in static_files %}
<url>
- <loc>{{ file.path | absolute_url | xml_escape }}</loc>
+ <loc>{{ file.path | replace:'/index.html','/' | absolute_url | xml_escape }}</loc>
<lastmod>{{ file.modified_time | date_to_xmlschema }}</lastmod>
</url>
{% endfor %}
</urlset>