added usage of site.html_pages to test source sitemap.xml
This commit is contained in:
parent
ef2fabb189
commit
80b13a81fa
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue