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

fix:hexo-config() return '' causing error while should be 0 in some themes #170

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

kusurin
Copy link
Contributor

@kusurin kusurin commented Nov 28, 2023

hexo-config(item) will return empty string '' if item is set as 0 in _config.[theme].yml due to 0 || '' is '' in /lib/renderer.js:line 16
And some themes need the value 0 or errors would occurr.(such as hue in vivia)

hexo-config(item) will return empty string '' if item is set as 0 in _config.yml due to (0 || '') is '' in /lib/renderer.js:line 16
And some themes need the value 0 or errors would occurr
@coveralls
Copy link

Coverage Status

coverage: 100.0%. remained the same
when pulling 5a5c604 on kusurin:repaire-hexo-config
into 560cf83 on hexojs:master.

@uiolee uiolee merged commit b0024b8 into hexojs:master Jan 11, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants