added usage of site.html_pages to test source sitemap.xml

This commit is contained in:
Kris Brown 2010-02-27 14:11:06 +00:00
parent ef2fabb189
commit 80b13a81fa
1 changed files with 10 additions and 1 deletions

View File

@ -14,10 +14,19 @@ layout: nil
{% for post in site.posts %}
<url>
<loc>http://example.com/{{ post.url }}/</loc>
<loc>http://example.com{{ post.url }}/</loc>
<lastmod>{{ post.date | date: "%Y-%m-%d" }}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.2</priority>
</url>
{% endfor %}
{% for page in site.html_pages %}
<url>
<loc>http://example.com{{ page.url }}</loc>
<lastmod>{{ site.time | date: "%Y-%m-%d" }}</lastmod>
{% if page.changefreq %}<changefreq>{{ page.changefreq }}</changefreq>{% endif %}
{% if page.priority %}<priority>{{ page.priority }}</priority>{% endif %}
</url>
{% endfor %}
</urlset>