From 33d22cf7a8fc6ef8b55259041884eb0e1f710132 Mon Sep 17 00:00:00 2001 From: HerrHase Date: Tue, 10 Jan 2023 17:18:04 +0100 Subject: [PATCH] adding #6 --- src/factories/sitemap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/factories/sitemap.js b/src/factories/sitemap.js index ef57117..3de5f38 100644 --- a/src/factories/sitemap.js +++ b/src/factories/sitemap.js @@ -59,7 +59,7 @@ class Sitemap { let result = true - if (page.meta) { + if (page.meta && page.type === 'html') { page.meta = Object.entries(page.meta) page.meta.forEach((meta) => { if (meta['name'] === 'robots' && meta['content'].includes('noindex')) {