jerryc127 / hexo-theme-butterfly

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

[Bug]: toc_expand: false不起作用 #1439

Closed W1ndys closed 4 months ago

W1ndys commented 5 months ago

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

4.12.0

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

不是 (No)

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

Chrome

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

Windows

依賴插件 | Package dependencies Information

$ npm ls --depth 0
hexo-site@0.0.0 F:\blog\blog-butterfly
├── @renbaoshuo/markdown-it-katex@2.0.2
├── hexo-abbrlink@2.2.1
├── hexo-blog-encrypt@3.1.9
├── hexo-deployer-git@4.0.0
├── hexo-generator-archive@2.0.0
├── hexo-generator-category@2.0.0
├── hexo-generator-index@3.0.0
├── hexo-generator-searchdb@1.4.1
├── hexo-generator-tag@2.0.0
├── hexo-renderer-ejs@2.0.0
├── hexo-renderer-markdown-it@7.1.1
├── hexo-renderer-pug@3.0.0
├── hexo-renderer-stylus@3.0.1
├── hexo-server@3.0.0
├── hexo-theme-butterfly@4.12.0
├── hexo-theme-landscape@1.0.0
├── hexo@7.0.0
└── katex@0.16.9

問題描述 | Describe the bug

配置设置的

# toc (目录)
toc:
  post: true #文章页是否显示 TOC
  page: true #普通页面是否显示 TOC
  number: true #是否显示章节数
  expand: false #是否展开 TOC
  style_simple: true # 简洁模式(侧边栏只显示 TOC, 只对文章页有效 )
  scroll_percent: true #是否显示滚动进度百分比

image

expand false 但是某个文章没有起效 除了这个文章其他的都正常 有加密插件,但已经排除了加密插件的影响,卸载插件不加密也会出现这个bug

另一个文章是配置收起后正常,但是解密后点不开一级一下的标题(本地刷新后可以),云端刷新后不行这个貌似正常了(刷新之后),bug竟然还会偶现,这个我猜着应该是加密插件的原因,有没有办法解决一下

但是第一个的话,卸载掉插件还是bug

出現問題網站 | Website

配置收起后无法收起https://w1ndys.top/posts/216d9006.html#/

这个貌似正常了(刷新之后),bug竟然还会偶现 ↓ 解密后无法展开https://w1ndys.top/posts/acc7bbca/

W1ndys commented 5 months ago

找了个空环境测试了一下 bug仍然存在

配置收起后无法收起https://w1ndys.top/posts/216d9006.html#/

jerryc127 commented 5 months ago

不建議使用 hexo-blog-encrypt

因爲它需要你解密后,自己去調用一些 js

W1ndys commented 5 months ago

不建議使用 hexo-blog-encrypt

因爲它需要你解密后,自己去調用一些 js

去掉加密插件之后问题仍然存在

github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.