file: add sitemap to root
This commit is contained in:
1 parent
28b6193781
commit
fae496a455
1 file changed
+38
+38
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
{% for post in posts %}
|
||||
<url>
|
||||
<loc>{{ post.permalink | uriencode }}</loc>
|
||||
{% if post.updated %}
|
||||
<lastmod>{{ post.updated | formatDate }}</lastmod>
|
||||
{% elif post.date %}
|
||||
<lastmod>{{ post.date | formatDate }}</lastmod>
|
||||
{% endif %}
|
||||
</url>
|
||||
{% endfor %}
|
||||
|
||||
<url>
|
||||
<loc>{{ config.url | uriencode }}</loc>
|
||||
<lastmod>{{ sNow | formatDate }}</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
|
||||
{% for tag in tags %}
|
||||
<url>
|
||||
<loc>{{ tag.permalink | uriencode }}</loc>
|
||||
<lastmod>{{ sNow | formatDate }}</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>0.6</priority>
|
||||
</url>
|
||||
{% endfor %}
|
||||
|
||||
{% for cat in categories %}
|
||||
<url>
|
||||
<loc>{{ cat.permalink | uriencode }}</loc>
|
||||
<lastmod>{{ sNow | formatDate }}</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>0.6</priority>
|
||||
</url>
|
||||
{% endfor %}
|
||||
</urlset>
|
||||
Reference in new issue
Block a user