diff --git a/lib/rel.js b/lib/rel.js index 59c2927..4cf0ead 100644 --- a/lib/rel.js +++ b/lib/rel.js @@ -7,7 +7,8 @@ function relSitemapInject(data) { if (!rel || data.match(/rel=['|"]?sitemap['|"]?/i)) return; - const relSitemap = ``; + const relPath = typeof path === 'string' ? path : path[0]; + const relSitemap = ``; return data.replace(/(?!<\/head>).+?<\/head>/, str => str.replace('', `${relSitemap}`)); }