Skip to content

Commit ff0a2f8

Browse files
author
Matthieu Oger
committed
Fix sitemap
1 parent d9fd8ad commit ff0a2f8

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

_pages/sitemap.xml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,17 @@ permalink: /sitemap.xml
2222
<priority>0.8</priority>
2323
</url>
2424

25-
<!-- work -->
25+
<!-- portfolio -->
2626
<url>
27-
<loc>http://pixelnest.io/work/</loc>
27+
<loc>http://pixelnest.io/portfolio/</loc>
28+
<lastmod>{{ site.time | date_to_xmlschema}}</lastmod>
29+
<changefreq>weekly</changefreq>
30+
<priority>0.9</priority>
31+
</url>
32+
33+
<!-- services -->
34+
<url>
35+
<loc>http://pixelnest.io/services/</loc>
2836
<lastmod>{{ site.time | date_to_xmlschema}}</lastmod>
2937
<changefreq>weekly</changefreq>
3038
<priority>0.9</priority>
@@ -70,4 +78,19 @@ permalink: /sitemap.xml
7078
</url>
7179
{% endunless %}
7280
{% endfor %}
81+
82+
<!-- products -->
83+
{% for product in site.products %}
84+
<url>
85+
<loc>http://pixelnest.io{{ product.url }}</loc>
86+
87+
{% if product.lastmod %}
88+
<lastmod>{{ product.lastmod | date_to_xmlschema }}</lastmod>
89+
{% else %}
90+
<lastmod>{{ product.date | date_to_xmlschema }}</lastmod>
91+
{% endif %}
92+
<changefreq>monthly</changefreq>
93+
<priority>0.8</priority>
94+
</url>
95+
{% endfor %}
7396
</urlset>

0 commit comments

Comments
 (0)