removed tabs and made into a better example for sitemap times
This commit is contained in:
parent
4fd2b54a7d
commit
cd946a587b
|
@ -3,21 +3,21 @@ layout: nil
|
||||||
---
|
---
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<urlset
|
<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">
|
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">
|
||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>http://example.com</loc>
|
<loc>http://example.com</loc>
|
||||||
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
|
<lastmod>{{ site.time | date: "%Y-%m-%d" }}</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
<priority>1.0</priority>
|
<priority>1.0</priority>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
<url>
|
<url>
|
||||||
<loc>http://example.com/{{ post.url }}/</loc>
|
<loc>http://example.com/{{ post.url }}/</loc>
|
||||||
<lastmod>{{ site.time }}</lastmod>
|
<lastmod>{{ post.date | date: "%Y-%m-%d" }}</lastmod>
|
||||||
<changefreq>monthly</changefreq>
|
<changefreq>monthly</changefreq>
|
||||||
<priority>0.2</priority>
|
<priority>0.2</priority>
|
||||||
</url>
|
</url>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</urlset>
|
</urlset>
|
||||||
|
|
Loading…
Reference in New Issue