Skip to content

Commit

Permalink
Provide more reasonable default value for sitemap (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhongtw authored Aug 23, 2021
1 parent ea8bdcb commit 7497089
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
{% elif post.date %}
<lastmod>{{ post.date | formatDate }}</lastmod>
{% endif %}
<changefreq>monthly</changefreq>
<priority>0.6</priority>
</url>
{% endfor %}

Expand All @@ -22,17 +24,17 @@
<url>
<loc>{{ tag.permalink | uriencode }}</loc>
<lastmod>{{ sNow | formatDate }}</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
<changefreq>weekly</changefreq>
<priority>0.2</priority>
</url>
{% endfor %}

{% for cat in categories %}
<url>
<loc>{{ cat.permalink | uriencode }}</loc>
<lastmod>{{ sNow | formatDate }}</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
<changefreq>weekly</changefreq>
<priority>0.2</priority>
</url>
{% endfor %}
</urlset>

0 comments on commit 7497089

Please sign in to comment.