Skip to content

Commit

Permalink
Fix sitemap.
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed Feb 26, 2020
1 parent b8e7d1c commit 0151fdb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ layout: compress
{% unless post.published == false %}

{% capture lastmod %}
{% if post.lastmod %}
{{ post.lastmod }}
{% if post.seo.date_modified %}
{{ post.seo.date_modified }}
{% elsif post.date %}
{{ post.date }}
{% else %}
Expand All @@ -39,7 +39,9 @@ layout: compress
<priority>0.5</priority>
{% endif %}
</url>

{% endunless %}

{% endfor %}

{% for page in site.pages %}
Expand Down

0 comments on commit 0151fdb

Please sign in to comment.