Skip to content

Commit 9efd75f

Browse files
committed
Remove SEO subkey
1 parent c885a2d commit 9efd75f

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/site/sitemap.njk

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
---
22
permalink: /sitemap.xml
3-
seo:
4-
excludeFromSitemap: true
3+
excludeFromSitemap: true
54
---
65
<?xml version="1.0" encoding="UTF-8"?>
76
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
87
{%- for item in collections.all %}
9-
{%- if item.data.seo.excludeFromSitemap !== true %}
8+
{%- if item.data.excludeFromSitemap !== true %}
109
<url>
1110
<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>
1514
{%- 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>
1817
{%- endif %}
1918
</url>
2019
{%- endif %}

0 commit comments

Comments
 (0)