File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ layout: null
3+ ---
4+ <?xml version =" 1.0" encoding =" UTF-8" ?>
5+ <urlset xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns =" http://www.sitemaps.org/schemas/sitemap/0.9" >
6+ {% for post in site.posts %}
7+ <url >
8+ <loc >{{ site.url }}{{ post.url }}</loc >
9+ {% if post.lastmod == null %}
10+ <lastmod >{{ post.date | date_to_xmlschema }}</lastmod >
11+ {% else %}
12+ <lastmod >{{ post.lastmod | date_to_xmlschema }}</lastmod >
13+ {% endif %}
14+
15+ {% if post.sitemap.changefreq == null %}
16+ <changefreq >weekly</changefreq >
17+ {% else %}
18+ <changefreq >{{ post.sitemap.changefreq }}</changefreq >
19+ {% endif %}
20+
21+ {% if post.sitemap.priority == null %}
22+ <priority >0.5</priority >
23+ {% else %}
24+ <priority >{{ post.sitemap.priority }}</priority >
25+ {% endif %}
26+ </url >
27+ {% endfor %}
28+ </urlset >
You can’t perform that action at this time.
0 commit comments