chore: simplify sitemap output
This commit is contained in:
parent
ceb9981374
commit
f710b01814
|
@ -9,16 +9,12 @@ use:
|
|||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>{{ site.url }}</loc>
|
||||
<lastmod>{{ site.calculated_date|date('Y-m-d') }}</lastmod>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
{% for page in data.pages if not page.exclude_from_sitemap %}
|
||||
<url>
|
||||
<loc>{{ site.url }}{{ page.url }}</loc>
|
||||
<lastmod>{{ site.calculated_date|date('Y-m-d') }}</lastmod>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
{% endfor %}
|
||||
|
@ -26,8 +22,6 @@ use:
|
|||
{% for post in data.posts %}
|
||||
<url>
|
||||
<loc>{{ site.url }}{{ post.url }}</loc>
|
||||
<lastmod>{{ post.date|date('c') }}</lastmod>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
{% endfor %}
|
||||
|
@ -35,8 +29,6 @@ use:
|
|||
{% for talk in data.talks if not talk.hide_page %}
|
||||
<url>
|
||||
<loc>{{ site.url }}{{ talk.url }}</loc>
|
||||
<lastmod>{{ talk.date|date('c') }}</lastmod>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in a new issue