hexojs / hexo-renderer-stylus

Stylus renderer for Hexo
MIT License
18 stars 19 forks source link

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

Closed kusurin closed 9 months ago

kusurin commented 11 months ago

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)

coveralls commented 11 months ago

Coverage Status

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