jerryc127 / hexo-theme-butterfly

🦋 A Hexo Theme: Butterfly
https://butterfly.js.org
Apache License 2.0
7.11k stars 1.28k forks source link

[Bug]: toc.number设置为了true,但不生效 #1414

Closed danvinhe closed 9 months ago

danvinhe commented 9 months ago

使用的 Butterfly 版本? | What version of Butterfly are you use?

4.11.0

是否修改过主题文件? || Has the theme files been modified?

不是 (No)

使用的瀏覽器? || What browse are you using?

Chrome

使用的系統? || What operating system are you using?

macOS

依賴插件 | Package dependencies Information

hexo-site@0.0.0 /Users/lindan.he/Projects/values.fun
├── hexo-generator-archive@2.0.0
├── hexo-generator-category@2.0.0
├── hexo-generator-index@3.0.0
├── hexo-generator-search@2.4.3
├── hexo-generator-tag@2.0.0
├── hexo-renderer-ejs@2.0.0
├── hexo-renderer-marked@6.1.1
├── hexo-renderer-pug@3.0.0
├── hexo-renderer-stylus@3.0.0
├── hexo-server@3.0.0
├── hexo-theme-landscape@1.0.0
├── hexo-word-counter@0.1.0
└── hexo@7.0.0

問題描述 | Describe the bug

image

出現問題網站 | Website

https://www.values.fun/posts/ljd/23121310.html

danvinhe commented 9 months ago

page页的toc_numer的字段存在,但未设置值,导致这里的判断是true,但page.toc_number的值又不是true

image
jerryc127 commented 9 months ago

https://github.com/jerryc127/hexo-theme-butterfly/commit/6a99a80758ed8809cd5be8b1f00e2fd34f969119