drop articles from sitemap
This commit is contained in:
1 parent
44973faea3
commit
79a127636c
1 file changed
-10
@@ -30,20 +30,10 @@ async function getPageUrls(frequency = 'daily') {
|
|||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getArticleUrls() {
|
|
||||||
const res = await api.get('/api/articles/urls')
|
|
||||||
|
|
||||||
return res.data.items.map(url => ({
|
|
||||||
changefreq: 'monthly',
|
|
||||||
url,
|
|
||||||
}))
|
|
||||||
}
|
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
let urls = await Promise.all([
|
let urls = await Promise.all([
|
||||||
getMenuUrls(),
|
getMenuUrls(),
|
||||||
getPageUrls(),
|
getPageUrls(),
|
||||||
getArticleUrls(),
|
|
||||||
])
|
])
|
||||||
urls = urls.reduce((urls, i) => urls.concat(i))
|
urls = urls.reduce((urls, i) => urls.concat(i))
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user