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