hexo-theme-butterfly icon indicating copy to clipboard operation
hexo-theme-butterfly copied to clipboard

[Bug]: toc_expand: false不起作用

Open W1ndys opened this issue 1 year ago • 3 comments

使用的 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
[email protected] F:\blog\blog-butterfly
├── @renbaoshuo/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

問題描述 | 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 avatar Jan 18 '24 15:01 W1ndys

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

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

W1ndys avatar Jan 18 '24 16:01 W1ndys

不建議使用 hexo-blog-encrypt

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

jerryc127 avatar Jan 19 '24 05:01 jerryc127

不建議使用 hexo-blog-encrypt

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

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

W1ndys avatar Jan 20 '24 04:01 W1ndys

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.

github-actions[bot] avatar Feb 20 '24 01:02 github-actions[bot]