lib/sitemap.xml in jekyll-sitemap-0.8.1 vs lib/sitemap.xml in jekyll-sitemap-0.9.0
- old
+ new
@@ -17,17 +17,25 @@
{% if page.last_modified_at %}
<lastmod>{{ page.last_modified_at | date_to_xmlschema }}</lastmod>
{% endif %}
</url>
{% endunless %}{% endfor %}
- {% for collection in site.collections %}{% unless collection.last.output == false %}
+ {% for collection in site.collections %}{% unless collection.last.output == false or collection.output == false %}
{% for doc in collection.last.docs %}{% unless doc.sitemap == false %}
<url>
<loc>{{ doc.url | replace:'/index.html','/' | prepend: site_url }}</loc>
{% if doc.last_modified_at %}
<lastmod>{{ doc.last_modified_at | date_to_xmlschema }}</lastmod>
{% endif %}
</url>
+ {% endunless %}{% endfor %}
+ {% for doc in collection.docs %}{% unless doc.sitemap == false %}
+ <url>
+ <loc>{{ doc.url | replace:'/index.html','/' | prepend: site_url }}</loc>
+ {% if doc.last_modified_at %}
+ <lastmod>{{ doc.last_modified_at | date_to_xmlschema }}</lastmod>
+ {% endif %}
+ </url>
{% endunless %}{% endfor %}
{% endunless %}{% endfor %}
{% for file in site.html_files %}
<url>
<loc>{{ file.path | prepend: site_url }}</loc>