hexo-generator-sitemap
hexo-generator-sitemap copied to clipboard
Setting rel is not valid on configure
Site's header format is
<head>
<title>...</title>
</head>
rel is not valid
if format is
<head><title>...</title></head>
rel is valid
relSitemapInject()
data.replace(/<head>(?!<\/head>).+?<\/head>/, str => str.replace('</head>', `${relSitemap}</head>`));
modify
data.replace(/<head>(?!<\/head>)(.|\r|\n)+?<\/head>/, str => str.replace('</head>', `${relSitemap}</head>`));