Skip to content

Commit c95e183

Browse files
authored
Create sitemap.xml
1 parent 78bc187 commit c95e183

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

sitemap.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
layout: null
3+
search: exclude
4+
---
5+
6+
<?xml version="1.0" encoding="UTF-8"?>
7+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
8+
9+
{% for page in site.pages %}
10+
<url>
11+
<loc>{{page.url}}</loc>
12+
<lastmod>{{site.time | date: '%Y-%m-%d' }}</lastmod>
13+
<changefreq>daily</changefreq>
14+
<priority>0.5</priority>
15+
</url>
16+
{% endfor %}
17+
18+
{% for post in site.posts %}
19+
<url>
20+
<loc>{{post.url}}</loc>
21+
<lastmod>{{site.time | date: '%Y-%m-%d' }}</lastmod>
22+
<changefreq>daily</changefreq>
23+
<priority>0.5</priority>
24+
</url>
25+
{% endfor %}
26+
27+
</urlset>

0 commit comments

Comments
 (0)