lib/sitemap.xml in jekyll-sitemap-0.2.0 vs lib/sitemap.xml in jekyll-sitemap-0.3.0
- old
+ new
@@ -1,16 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet type="text/xsl" href="/sitemap.xsl"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% capture site_url %}{% if site.url %}{{ site.url }}{% else %}{{ site.github.url }}{% endif %}{% endcapture %}
{% for post in site.posts %}
<url>
<loc>{{ site_url }}{{ post.url }}</loc>
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
<priority>0.8</priority>
</url>
{% endfor %}
- {% for post in site.pages %}
+ {% for post in site.html_pages %}
<url>
<loc>{{ site_url }}{{ post.url | replace:'index.html','' }}</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>