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

search.content cannot be set to false #912

Closed
3 tasks done
luyuhuang opened this issue Feb 18, 2023 · 1 comment
Closed
3 tasks done

search.content cannot be set to false #912

luyuhuang opened this issue Feb 18, 2023 · 1 comment
Labels
🐛 bug Unexpected problem or unintended behavior

Comments

@luyuhuang
Copy link

Make sure

  • Upgrade the latest release.
  • It can be replicated through hexo clean && hexo s and cleared browser cache in the localhost.
  • Not affected by other Hexo plugins

Describe the bug

const content = searchConfig.content || true;

The value of the expression is always true no matter what the value of searchConfig.content is.

@luyuhuang luyuhuang added the 🐛 bug Unexpected problem or unintended behavior label Feb 18, 2023
@wuhao21
Copy link
Contributor

wuhao21 commented Feb 22, 2023

I will claim this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants