Skip to content

Commit 22d5782

Browse files
committed
Fix build script
1 parent c916d61 commit 22d5782

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

bin/sitemap.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ async function buildSiteMap () {
4343
priority: 1
4444
})
4545
for (const page of data.pages) {
46-
urls.push({
47-
loc: host + '/' + page + '.html',
48-
lastmod: dayjs(state.mtime).format(fmt),
49-
changefreq: 'weekly',
50-
priority: 1
51-
})
46+
if (page !== 'deb') {
47+
urls.push({
48+
loc: host + '/' + page + '.html',
49+
lastmod: dayjs(state.mtime).format(fmt),
50+
changefreq: 'weekly',
51+
priority: 1
52+
})
53+
}
5254
}
5355
const arr = await buildPages()
5456
urls.push(...arr)

0 commit comments

Comments
 (0)