Skip to content

Commit 811bd29

Browse files
committed
Fix sitemap.
1 parent 12e1f3c commit 811bd29

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

sitemap.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ layout: compress
1414
{% unless post.published == false %}
1515

1616
{% capture lastmod %}
17-
{% if post.lastmod %}
18-
{{ post.lastmod }}
17+
{% if post.seo.date_modified %}
18+
{{ post.seo.date_modified }}
1919
{% elsif post.date %}
2020
{{ post.date }}
2121
{% else %}
@@ -39,7 +39,9 @@ layout: compress
3939
<priority>0.5</priority>
4040
{% endif %}
4141
</url>
42+
4243
{% endunless %}
44+
4345
{% endfor %}
4446

4547
{% for page in site.pages %}

0 commit comments

Comments
 (0)