Skip to content

Commit c9ed251

Browse files
authored
Fix sitemap (#357)
1 parent 3fc6bfb commit c9ed251

File tree

1 file changed

+21
-22
lines changed

1 file changed

+21
-22
lines changed

scripts/build-sitemap.js

+21-22
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,27 @@ const fs = require('fs')
22

33
const nowDate = (new Date()).toISOString().split('T')[0]
44

5-
const sitemap = `
6-
<?xml version="1.0" encoding="UTF-8"?>
7-
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
8-
<url>
9-
<loc>https://interslavic-dictionary.com/</loc>
10-
<lastmod>${nowDate}T00:00:00+00:00</lastmod>
11-
<changefreq>weekly</changefreq>
12-
<priority>1.0</priority>
13-
</url>
14-
<url>
15-
<loc>https://interslavic-dictionary.com/about</loc>
16-
<lastmod>${nowDate}T00:00:00+00:00</lastmod>
17-
<changefreq>weekly</changefreq>
18-
<priority>1.0</priority>
19-
</url>
20-
<url>
21-
<loc>https://interslavic-dictionary.com/grammar</loc>
22-
<lastmod>${nowDate}T00:00:00+00:00</lastmod>
23-
<changefreq>weekly</changefreq>
24-
<priority>1.0</priority>
25-
</url>
26-
</urlset>
5+
const sitemap = `<?xml version="1.0" encoding="UTF-8"?>
6+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
7+
<url>
8+
<loc>https://interslavic-dictionary.com/</loc>
9+
<lastmod>${nowDate}T00:00:00+00:00</lastmod>
10+
<changefreq>weekly</changefreq>
11+
<priority>1.0</priority>
12+
</url>
13+
<url>
14+
<loc>https://interslavic-dictionary.com/about</loc>
15+
<lastmod>${nowDate}T00:00:00+00:00</lastmod>
16+
<changefreq>weekly</changefreq>
17+
<priority>1.0</priority>
18+
</url>
19+
<url>
20+
<loc>https://interslavic-dictionary.com/grammar</loc>
21+
<lastmod>${nowDate}T00:00:00+00:00</lastmod>
22+
<changefreq>weekly</changefreq>
23+
<priority>0.1</priority>
24+
</url>
25+
</urlset>
2726
`
2827

2928
fs.writeFileSync('./dist/sitemap.xml', sitemap)

0 commit comments

Comments
 (0)