develop
HerrHase 2 years ago
parent 33d22cf7a8
commit c4ba30213f

@ -59,7 +59,7 @@ class Sitemap {
let result = true let result = true
if (page.meta && page.type === 'html') { if (page.meta) {
page.meta = Object.entries(page.meta) page.meta = Object.entries(page.meta)
page.meta.forEach((meta) => { page.meta.forEach((meta) => {
if (meta['name'] === 'robots' && meta['content'].includes('noindex')) { if (meta['name'] === 'robots' && meta['content'].includes('noindex')) {
@ -69,6 +69,10 @@ class Sitemap {
}) })
} }
if (page.type !== 'html') {
result = false
}
return result return result
} }

Loading…
Cancel
Save