File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
permalink: /sitemap.xml
3
- seo:
4
- excludeFromSitemap: true
3
+ excludeFromSitemap: true
5
4
---
6
5
<?xml version =" 1.0" encoding =" UTF-8" ?>
7
6
<urlset xmlns =" http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml =" http://www.w3.org/1999/xhtml" >
8
7
{%- for item in collections .all %}
9
- {%- if item .data .seo . excludeFromSitemap != = true %}
8
+ {%- if item .data .excludeFromSitemap != = true %}
10
9
<url >
11
10
<loc >https://www.jamstack.org{{ item .url }} </loc >
12
- <lastmod >{{ item .data .seo . lastmod or item .date | formatDate (' yyyy-MM-dd' ) }} </lastmod >
13
- {%- if item .data .seo . changefreq %}
14
- <changefreq >{{ item .data .seo . changefreq }} </changefreq >
11
+ <lastmod >{{ item .data .lastmod or item .date | formatDate (' yyyy-MM-dd' ) }} </lastmod >
12
+ {%- if item .data .changefreq %}
13
+ <changefreq >{{ item .data .changefreq }} </changefreq >
15
14
{%- endif %}
16
- {%- if item .data .seo . priority %}
17
- <priority >{{ item .data .seo . priority }} </priority >
15
+ {%- if item .data .priority %}
16
+ <priority >{{ item .data .priority }} </priority >
18
17
{%- endif %}
19
18
</url >
20
19
{%- endif %}
You can’t perform that action at this time.
0 commit comments