Skip to content
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

feat: add option to disable meta generator tag #3653

Merged
merged 2 commits into from
Aug 6, 2019

Conversation

curbengh
Copy link
Contributor

@curbengh curbengh commented Aug 6, 2019

What does it do?

Add meta_generator option (enabled by default) to disable addition of <meta name="generator" content="Hexo 3.9.0">.

Fix #3652 (comment)

How to test

git clone -b meta-generator https://github.com/curbengh/hexo.git
cd hexo
npm install
npm test

Pull request tasks

  • Add test cases for the changes.
  • Passed the CI test.

cc @JoeyBling

@curbengh curbengh changed the title Meta generator feat: add option to disable meta generator tag Aug 6, 2019
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0008%) to 97.153% when pulling 5d592cc on curbengh:meta-generator into 9b87047 on hexojs:master.

@yoshinorin yoshinorin merged commit 0621184 into hexojs:master Aug 6, 2019
@yoshinorin
Copy link
Member

yoshinorin commented Aug 6, 2019

It works well :)

IMO that it's nice if we disable meta_generator plugin here.

filter.register('after_render:html', require('./meta_generator'));

But, hexo ctx not yet load _config.yml settings when register filter/index.js.

@yoshinorin yoshinorin added the enhancement New feature or request label Aug 6, 2019
@yoshinorin yoshinorin added this to the v4.0.0 milestone Aug 6, 2019
yoshinorin referenced this pull request in yoshinorin/hexo-test Aug 6, 2019
@curbengh
Copy link
Contributor Author

curbengh commented Aug 6, 2019

But, hexo ctx not yet load _config.yml settings when register filter/index.js.

good catch

@curbengh curbengh deleted the meta-generator branch August 6, 2019 13:06
curbengh added a commit to curbengh/hexo-starter that referenced this pull request Oct 11, 2019
- pretty_urls.trailing_index: hexojs/hexo#3691
- external_link.enable: hexojs/hexo#3675
- meta_generator: hexojs/hexo#3653
- use_date_for_updated: hexojs/hexo#3235
yy4r pushed a commit to yy4r/blogback that referenced this pull request Jan 16, 2020
- pretty_urls.trailing_index: hexojs/hexo#3691
- external_link.enable: hexojs/hexo#3675
- meta_generator: hexojs/hexo#3653
- use_date_for_updated: hexojs/hexo#3235
liyou54 pushed a commit to liyou54/blog_source that referenced this pull request Jan 19, 2023
- pretty_urls.trailing_index: hexojs/hexo#3691
- external_link.enable: hexojs/hexo#3675
- meta_generator: hexojs/hexo#3653
- use_date_for_updated: hexojs/hexo#3235
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

closed tag problem of generated HTML
3 participants