lib/sitemap.xml in jekyll-sitemap-0.7.0 vs lib/sitemap.xml in jekyll-sitemap-0.8.0

- old
+ new

@@ -7,34 +7,28 @@ {% if post.last_modified_at %} <lastmod>{{ post.last_modified_at | date_to_xmlschema }}</lastmod> {% else %} <lastmod>{{ post.date | date_to_xmlschema }}</lastmod> {% endif %} - <priority>0.8</priority> </url> {% endunless %}{% endfor %} - {% for post in site.html_pages %}{% unless post.sitemap == false %} + {% for page in site.html_pages %}{% unless page.sitemap == false %} <url> - <loc>{{ post.url | replace:'index.html','' | prepend: site_url }}</loc> + <loc>{{ page.url | replace:'/index.html','/' | prepend: site_url }}</loc> <lastmod>{{ site.time | date_to_xmlschema }}</lastmod> - <changefreq>weekly</changefreq> - <priority>{% if post.url == "/" or post.url == "/index.html" %}1.0{% else %}0.7{% endif %}</priority> </url> {% endunless %}{% endfor %} {% for collection in site.collections %}{% unless collection.last.output == false %} {% for doc in collection.last.docs %}{% unless doc.sitemap == false %} <url> - <loc>{{ doc.url | replace:'index.html','' | prepend: site_url }}</loc> + <loc>{{ doc.url | replace:'/index.html','/' | prepend: site_url }}</loc> <lastmod>{{ site.time | date_to_xmlschema }}</lastmod> - <changefreq>weekly</changefreq> - <priority>{% if doc.url == "/" or doc.url == "/index.html" %}1.0{% else %}0.7{% endif %}</priority> </url> {% endunless %}{% endfor %} {% endunless %}{% endfor %} {% for file in site.html_files %} <url> <loc>{{ file.path | prepend: site_url }}</loc> <lastmod>{{ file.modified_time | date_to_xmlschema }}</lastmod> - <priority>0.6</priority> </url> {% endfor %} </urlset>