Fix sitemap

This commit is contained in:
2020-03-09 13:01:48 +00:00
parent cd7d3712ed
commit 2812ca5c5b

View File

@@ -17,7 +17,7 @@ search: exclude
{% endfor %} {% endfor %}
{% if is_number and number != "404" %} {% if is_number and number != "404" %}
<url> <url>
<loc>/{{ number }}</loc> <loc>{{ page.url | absolute_url | remove: ".html" }}</loc>
<lastmod>{{ site.time | date: '%Y-%m-%d' }}</lastmod> <lastmod>{{ site.time | date: '%Y-%m-%d' }}</lastmod>
<changefreq>always</changefreq> <changefreq>always</changefreq>
<priority>0.5</priority> <priority>0.5</priority>
@@ -27,7 +27,7 @@ search: exclude
{% for post in site.posts %} {% for post in site.posts %}
<url> <url>
<loc>{{ post.url }}</loc> <loc>{{ post.url | absolute_url }}</loc>
<lastmod>{{ site.time | date: '%Y-%m-%d' }}</lastmod> <lastmod>{{ site.time | date: '%Y-%m-%d' }}</lastmod>
<changefreq>always</changefreq> <changefreq>always</changefreq>
<priority>0.5</priority> <priority>0.5</priority>