-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
meta generator in <body> when using hexo-nofollow plugin #3313
Comments
curbengh
pushed a commit
to curbengh/hexo-nofollow
that referenced
this issue
Oct 27, 2018
In the meantime, I'm using a workaround to remove all meta generator in Edit: Turns out that workaround also remove meta generator tag in Edit: Might be related to cheeriojs/cheerio#1031 Edit: It is related. Here's what I think happened:
<html><head></head><body><p></body></html>
<html><head><meta name="generator"...></head><body><p></body></html>
<meta name="generator"...><p> As a workaround, meta_generator.js check content if (!($('meta[name="generator"]').length > 0 ) && $('head').contents().length > 0) {
$('head').prepend(hexoGeneratorTag.replace('%s', this.version));
return $.html();
} |
curbengh
pushed a commit
to curbengh/hexo-nofollow
that referenced
this issue
Oct 27, 2018
curbengh
pushed a commit
to curbengh/hexo
that referenced
this issue
Oct 27, 2018
curbengh
changed the title
Excessive meta generator when using hexo-nofollow plugin
meta generator in <body> when using hexo-nofollow plugin
Oct 27, 2018
2 tasks
yoshinorin
added a commit
that referenced
this issue
Oct 28, 2018
fix: compatibility with cheerio 1.0.0+ (#3313)
thom4parisot
pushed a commit
to thom4parisot/hexo
that referenced
this issue
Jan 17, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm the author of hexo-nofollow plugin. After upgrading to v3.8.0, the meta generator (#3129) is added too many times (see curbengh/hexo-testing@f4824bb), instead of
<head>
only.No issue if I disable the plugin, meta generator is only added once per page.
Environment Info
Node version(
node -v
): v10.12.0Hexo and Plugin version(
npm ls --depth 0
):The text was updated successfully, but these errors were encountered: